Results 1 to 5 of 5

Thread: HowTo: Change Subpanel Display Label

  1. #1
    NSNDev is offline Junior Member
    Join Date
    Feb 2009
    Posts
    4

    Smile HowTo: Change Subpanel Display Label

    I think this will probably be an easy one for all you experienced developers out there so please pardon my lack of experience...

    I want to do what I think should be a very simple thing. In the Accounts tab there is a subpanel called 'Member Organizations'. I want to change the name so that it displays 'Subsidiaries'. Apparently this isn't something that can be changed from within Studio. How do I accomplish this?

    Thanks in advance

  2. #2
    crmsiva's Avatar
    crmsiva is offline A Sugar Hero
    Join Date
    Jan 2009
    Location
    Chennai, India
    Posts
    1,130

    Default Re: HowTo: Change Subpanel Display Label

    Hi

    Add the below entry to the $mod_strings array in "custom\modules\Accounts\language\en_us.lang.p hp".

    Code:
      'LBL_MEMBER_ORG_SUBPANEL_TITLE'=>'Subsidiaries',
    If there is no such file available in custom directory, create the file using below code

    Code:
    <?php
    
    $mod_strings = array (
            'LBL_MEMBER_ORG_SUBPANEL_TITLE'=>'Subsidiaries',
            );
    
    ?>
    PS: Don't forget to enable developer mode, while doing this change
    Last edited by crmsiva; 2009-02-22 at 06:28 AM.

  3. #3
    NSNDev is offline Junior Member
    Join Date
    Feb 2009
    Posts
    4

    Default Re: HowTo: Change Subpanel Display Label

    Thank you very much Siva! You're solution worked perfectly. I didn't have to create the file since it was there already so just inserting that additonal line did the trick. I must say that this little excercise has given me another precious "nugget" as to the inner workings of SugarCRM.

    One last thing, you mentioned putting SugarCRM into developer mode. I couldn't figure out how to do that and even though the solution you provided apparently worked anyway, for my own edification could you tell me how to put SugarCRM into developer mode and in what circumstances I would need to do so?

  4. #4
    crmsiva's Avatar
    crmsiva is offline A Sugar Hero
    Join Date
    Jan 2009
    Location
    Chennai, India
    Posts
    1,130

    Default Re: HowTo: Change Subpanel Display Label

    Quote Originally Posted by NSNDev View Post
    Thank you very much Siva! You're solution worked perfectly. I didn't have to create the file since it was there already so just inserting that additonal line did the trick. I must say that this little excercise has given me another precious "nugget" as to the inner workings of SugarCRM.

    One last thing, you mentioned putting SugarCRM into developer mode. I couldn't figure out how to do that and even though the solution you provided apparently worked anyway, for my own edification could you tell me how to put SugarCRM into developer mode and in what circumstances I would need to do so?
    You can set the enable developer mode in Admin -> System Settings, by checking the Developer Mode Checkbox.

    From SugarDeveloperZone,

    Use Developer Mode when Customizing the User Interface

    When developing in SugarCRM, it is suggested that you turn on Developer Mode (Admin->System Settings->Advanced->Developer Mode) which causes the system to ignore the cached metadata files. This is especially helpful when you are altering templates, metadata or language files directly. When using Module Builder or Studio, the system will automatically refresh the file cache. Be sure to turn Developer Mode off when you have completed your customizations as Developer Mode does degrade system performance.

  5. #5
    atulnbd is offline Sugar Community Member
    Join Date
    Feb 2011
    Location
    Pune,India
    Posts
    34

    Default Re: HowTo: Change Subpanel Display Label

    I tried changing lang file..it changed all the places except for the for the main tab in others and in admin=>studio=>accounts(i want to change these two to some other names)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Custom Fields - Display Label
    By sdsource in forum Help
    Replies: 4
    Last Post: 2008-06-12, 11:15 PM
  2. Replies: 0
    Last Post: 2008-04-24, 07:22 PM
  3. Modify Label in detail display of History
    By mmansperger in forum Developer Help
    Replies: 2
    Last Post: 2008-03-26, 05:08 AM
  4. Item Name[Display Label] reversed
    By khamel in forum Help
    Replies: 5
    Last Post: 2008-01-28, 07:50 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
  •