Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By andopes

Thread: Add some code below the module title

  1. #1
    epurple is offline Sugar Community Member
    Join Date
    Jan 2011
    Posts
    10

    Default Add some code below the module title

    Hi,
    I'm trying to find where/how to add custom code below the module title. To simplify, let's say i want to add an intro text under "Lead : Home" in the lead module.
    How can i do that?
    i cant believe i cant find anything about that or event the place where this is done?
    i tried by creating a "index.php" in custom/modules/Leads, but then i don't know which file to include to get the rest as normal (search block, list table and mass update...)
    any idea?
    thanks

  2. #2
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: Add some code below the module title

    You could add some HTML code with the module title, adding this code in the language file which define the module name. Then instead of write just the module name, you can append some custom code there.
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

  3. #3
    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: Add some code below the module title

    The best approach is to implements the function getModuleTitle in your custom view:

    PHP Code:
    function getModuleTitle() {
      
    $title parent::getModuleTitle();

      return 
    $title $this->getSomeCustomTitle();

    Cheers
    lijith likes this.
    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to get page <title> to show the module name?
    By jbeaul in forum General Discussion
    Replies: 12
    Last Post: 2012-01-06, 12:12 PM
  2. change title from localhost to some other title
    By sidh211 in forum Developer Help
    Replies: 3
    Last Post: 2009-09-16, 04:02 PM
  3. Module built with Module Builder has blank tab title
    By dkelly in forum Developer Help
    Replies: 13
    Last Post: 2009-04-21, 05:37 PM
  4. Replies: 0
    Last Post: 2009-02-19, 03:50 AM
  5. Where O Where Is My Module Title?
    By Headjoog in forum Developer Help
    Replies: 10
    Last Post: 2006-06-20, 02:08 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
  •