Results 1 to 5 of 5

Thread: How to customize the sub-panel according to different module

  1. #1
    cindybaby is offline Member
    Join Date
    Mar 2009
    Posts
    7

    Default How to customize the sub-panel according to different module

    Hi, I just want to hide "New Account" function in the subpanel under the Accout module without modifying any code. Can I make it through the studio or somewhere else and how? Or is there any possibilities to customize the items in that function without modifying code, either? Thanks and may god bless everyone.


    PL:My version is SugarCE-5.2.0c
    Last edited by cindybaby; 2009-04-02 at 03:03 AM.

  2. #2
    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: How to customize the sub-panel according to different module

    Hi cindybaby

    You have to create an extended layoutdefs for accounts:
    custom/Extension/modules/Accounts/Ext/Layoutdefs/layoutdefs.ext.php
    containing a code to remove such button:

    PHP Code:
    <?php
    $layout_defs
    ["Accounts"]["subpanel_setup"]["<subpanel_name>"]["top_buttons"] = array(
    );
    ?>
    Then go to Admin -> Repair -> Rebuild Extensions

    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.

  3. #3
    cindybaby is offline Member
    Join Date
    Mar 2009
    Posts
    7

    Default Re: How to customize the sub-panel according to different module

    Sorry to say it does not work after I add the file and rebuild. Is ther any problem? BTW, is this method safe when upgrading?

  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: How to customize the sub-panel according to different module

    Can you kindly attach the content of the extended layoutdefs?

    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
    cindybaby is offline Member
    Join Date
    Mar 2009
    Posts
    7

    Default Re: How to customize the sub-panel according to different module

    I have solved the problem through reading some old posts. Any way, thanks very much

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Customize Admin panel ?
    By naitan in forum Developer Help
    Replies: 7
    Last Post: 2009-10-23, 08:25 PM
  2. Customize Admin Panel
    By danweifis in forum Help
    Replies: 0
    Last Post: 2008-10-06, 10:53 AM
  3. Replies: 2
    Last Post: 2008-09-24, 09:34 AM
  4. Replies: 3
    Last Post: 2008-06-03, 02:31 PM
  5. Replies: 1
    Last Post: 2008-01-01, 08:03 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
  •