now I custom the document module Categary dropdown.
I want to enlagre ghe Categary frame. show all the text. how to do?
now I custom the document module Categary dropdown.
I want to enlagre ghe Categary frame. show all the text. how to do?
You need to create a new template file inside folder include/SugarFields/Fields/ as a copy of include/SugarFields/Fields/Multienum
Rename the php script according the the name of the new folder and rename the class name.
Also update the path to the templates inside the script.
Then edit the EditView.tpl and modify the style="width:150" according to your needs.
Then edit the editviewdefs.php of the module and add the atribute into field defs:
'type' => 'Newfieldtype',
Cheers
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
This worked for me
Thanks André !
Kind regards,
De Kleine Media
SugarCRM CE v.5.2.0h
Windows platform
MySQL v.5.1
phpMyAdmin - 2.11.2.2
Apache Server v.2.0
You have to modify the script you create yourself. If, for exampel you copy the directory "Enum" (include/SugarFields/Fields) and rename this to Enum_Status. You have to modify the .php script inside this directory. There you have to change the path. It speaks for itself.
Goodluck
Kind regards,
De Kleine Media
SugarCRM CE v.5.2.0h
Windows platform
MySQL v.5.1
phpMyAdmin - 2.11.2.2
Apache Server v.2.0
I created a special field called TextBig that will be a textarea which is bigger then the regular size.
The folder is called "TextBig" and there are 3 files in this folder. The files are editview and detailview tpl files and the php file that I renamed to "SugarFieldTextBig.php"
I renamed the class to reflect the new name but still don't understand where the path is changed for the template files.
Also I am running sugarcrm 5.2.0e if that makes a difference.
Below are the contents of the code of the php file:
Code:require_once('include/SugarFields/Fields/Base/SugarFieldBase.php'); class SugarFieldTextBig extends SugarFieldBase { function getDetailViewSmarty($parentFieldArray, $vardef, $displayParams, $tabindex) { $displayParams['nl2br'] = true; $displayParams['url2html'] = true; return parent::getDetailViewSmarty($parentFieldArray, $vardef, $displayParams, $tabindex); } function getWirelessEditViewSmarty($parentFieldArray, $vardef, $displayParams, $tabindex) { $displayParams['nl2br'] = true; $displayParams['url2html'] = true; return parent::getWirelessEditViewSmarty($parentFieldArray, $vardef, $displayParams, $tabindex); } }
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks