Results 1 to 5 of 5

Thread: Possibility to change the font color for only one specified lable?

  1. #1
    shivaranjani is offline Sugar Community Member
    Join Date
    May 2008
    Posts
    174

    Question Possibility to change the font color for only one specified lable?

    Hello,
    I am usign Suagrcrm Professional version of Sugar. Is there any option to change the label for one specified label to any specified color.

    Operating System:- Linux
    Version:- Sugarcrm Professional 5.2.j
    PHP:- 5.2
    MySql:- 5.2.1
    Apache:-2.2

    Thank you in advance for your time.

    Regards,
    ShivaRanjani

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Possibility to change the font color for only one specified lable?

    It may help if you described the business case but in general you should look to the stylesheets in each theme

  3. #3
    shivaranjani is offline Sugar Community Member
    Join Date
    May 2008
    Posts
    174

    Question Re: Possibility to change the font color for only one specified lable?

    Hello,
    I do need to change the label of one filed for one specified module for the theme developed by us. any help?

    Regards,
    ShivaRanjani

  4. #4
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Possibility to change the font color for only one specified lable?

    One way is to edit the viewdefs located in custom\modules\MODULE\metadata. For example, if you want the Subject in Cases to be bold and red on the DetailView you'd open custom\modules\Cases\metadata\detailvewdefs.php (copy from modules\Cases\metadata if it does not exist yet) and change 'label' for 'name' to:

    PHP Code:
     'label' => '<strong><font color="red">{$MOD.LBL_NAME}</font></strong>'
    Make sure to do a Quick Repair & Rebuild on Cases afterwards or delete DetailView.tpl from cache\modules\Cases.
    Last edited by eggsurplus; 2009-12-11 at 05:40 PM. Reason: typo

  5. #5
    lachmac is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    30

    Default Re: Possibility to change the font color for only one specified lable?

    Hi, I have a similar issue, well almost. I created some custom fields in leads (callback_date_c), and I would like that field to change colours, as does the field date_due in tasks, ie yellow for today and red for when it's overdue.

    Does the code have to be in a separate file?

    can I use;

    if( $callback_date_c < $today){
    $leads_cstm_fields['CALLBACK_DATE_C']= "<font class='overdueTask'>".$leads_cstm_fields['CALLBACK_DATE_C']."</font>";
    }else if( $callback_date_c == $today ){
    $leads_cstm_fields['CALLBACK_DATE_C'] = "<font class='todaysTask'>".$leads_cstm_fields['CALLBACK_DATE_C']."</font>";
    }else{
    $leads_cstm_fields['CALLBACK_DATE_C'] = "<font class='futureTask'>".$leads_cstm_fields['CALLBACK_DATE_C']."</font>";
    }

    or am I barking up a wrong tree here...?

    best regards, Carl

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to change the color of font in detail View
    By Mubi in forum Developer Help
    Replies: 6
    Last Post: 2012-01-17, 09:17 PM
  2. Font color custom fields
    By gladiorlic in forum Help
    Replies: 7
    Last Post: 2011-10-27, 12:06 AM
  3. Possibility to change sort order property
    By Lassel in forum Feature Requests
    Replies: 0
    Last Post: 2009-09-14, 01:02 PM
  4. Replies: 2
    Last Post: 2009-08-07, 11:59 AM
  5. Replies: 2
    Last Post: 2009-05-02, 10:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •