Results 1 to 5 of 5

Thread: Custom code for panel label?

  1. #1
    door3ahmed is offline Senior Member
    Join Date
    Nov 2008
    Posts
    33

    Default Custom code for panel label?

    I'd like to be able to create custom code for my panel labels, so I can put a little help icon next tot he panel - which will pop up an instructions window.

    Is this possible, and where do I add the code if so?

    Thanks!

  2. #2
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: Custom code for panel label?

    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

  3. #3
    door3ahmed is offline Senior Member
    Join Date
    Nov 2008
    Posts
    33

    Default Re: Custom code for panel label?

    Does this work for panels as well as fields? I'll give it a shot now but I'm not quite sure where to put it to change the panel name.

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Custom code for panel label?

    Hi door3ahmed

    You just need to create an entry into extended language file "custom/Extension/modules/<ModuleName>/Ext/Language/<LanguageName>.lang.ext.php" whose key is the panel name (Uppercase) and the value is the panel label.

    Go to Admin -> Repair -> Rebuild Extension.

    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.

  5. #5
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: Custom code for panel label?

    Whoops it seems I read to quickly. I believe customLabel is only available to SugarFields and not panels. Andopes has the right answer. You can add HTML for your icon to the language file.
    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Code to Open and Close Panel in Detail View
    By rustyw007 in forum Developer Help
    Replies: 6
    Last Post: 2009-07-08, 01:54 PM
  2. Replies: 0
    Last Post: 2008-07-14, 04:40 PM
  3. Replies: 0
    Last Post: 2008-04-24, 07:22 PM
  4. Altering Custom Field Label
    By MarisaB in forum Developer Help
    Replies: 1
    Last Post: 2006-05-31, 05:33 PM
  5. Replies: 0
    Last Post: 2005-04-22, 04:01 AM

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
  •