Is there a way to make text in the Detail view a color.
I want to make text written in an field to show up, red in the detail view.
Is there a way to make text in the Detail view a color.
I want to make text written in an field to show up, red in the detail view.
Alliance Computers, LLC
Hello,
Yes, you can change the color by adding customCode (custom/modules/YOURMODULE/metadata/detailviewdefs.php)
or change the field in view.detail.php (add following line in display function)PHP Code:'YOUR_FIELD' =>
array(
'name' => 'YOUR_FIELD',
'label' => 'WHATEVER_THE_LABELNAME_IS',
'customCode' => '<font color="red">{$fields.YOUR_FIELD.value}</font>',
),
// I've written code right here, so check for error in you editor, if any.
PHP Code:$this->bean->YOUR_FIELD = '<font color="red">'.$this->bean->YOUR_FIELD.'</font>';
Thumbs up.
Skype ID - david__boris
SugarForge Projects:
WYSIWYG now in studio!(Version 1.1 is out now!)
Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.
Fab Tools! > Dashlet Not Followed Opportunities for past six Months
NICE! thank you very much
Alliance Computers, LLC
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks