Results 1 to 9 of 9

Thread: HOW TO add/remove subpanels in detailview page

  1. #1
    dekleinemedia is offline A Prolific Poster
    Join Date
    May 2009
    Location
    Netherlands
    Posts
    241

    Default HOW TO add/remove subpanels in detailview page

    Hi,

    I have an Panel "Projects".
    When i have create a new project, it will be displayed in Detail View.

    In this Detail View you can see the following subpanels;
    Projecttasks, Activities, History, Contacts, Relations, Opportunities, Cases and Bugs

    Now i only use the subpanel "Projecttasks". How can i disable the other subpanels, so they will not be showed in Detail View anymore?

    Can someone tell me which file i have to modify and where this file is located in Sugar directory?

    The Php code will be very helpfull!

    Thanks a lot!

    greetings, Jordy

    » Operating system type Windows XP
    » Webserver type Apache 2.1
    » SugarCRM CE version (5.2.0e)
    » MySQL server version (5.1)

  2. #2
    crmbalah is offline A Prolific Poster
    Join Date
    Mar 2009
    Location
    chennai
    Posts
    418

    Default Re: HOW TO add/remove subpanels in detailview page

    Hi
    go to custom/modules/your modules/Ext/Layoutdefs/layoutdefs.ext.php and customize this file

  3. #3
    dekleinemedia is offline A Prolific Poster
    Join Date
    May 2009
    Location
    Netherlands
    Posts
    241

    Default Re: HOW TO add/remove subpanels in detailview page

    Hi,

    thanks for your quick response.
    The problem is, under this directory--> custom\modules\Projects\Ext\Layoutdefs
    there is no layoutdefs.ext.php file

    How is this possible? You have some code for this file?

    thanksss

  4. #4
    southwestcrm is offline Sugar Community Member
    Join Date
    May 2007
    Posts
    171

    Default Re: HOW TO add/remove subpanels in detailview page

    Add a php file (any name) to the corresponding CUSTOM sub directory for the area required (ie. to remove the Contacts subpanel from the Cases area you would add the PHP file to the folder called /custom/Extension/modules/Cases/Ext/Layoutdefs

    the content of the file will look like:

    <?php
    unset($layout_defs['Cases']['subpanel_setup']['contacts']);
    ?>
    Simon Leek
    SouthwestCRM
    www.southwestict.com
    SugarCRM | KnowledgeTree | Joomla! Integration Services
    SugarCRM Bronze Partner
    Twitter: @southwestcrm


    Using:
    Linux & Windows
    PHP v5.2+
    Apache v2.2.8
    MySQL v5.0.45


    Need to mailmerge and produce labels in Microsoft Office Word? Use CRM2Office to connect MS Office to your SugarCRM system.

  5. #5
    crmbalah is offline A Prolific Poster
    Join Date
    Mar 2009
    Location
    chennai
    Posts
    418

    Default Re: HOW TO add/remove subpanels in detailview page

    Hi
    go to modules/your modules/metadata/subpaneldefs.php
    customize this file.

  6. #6
    dekleinemedia is offline A Prolific Poster
    Join Date
    May 2009
    Location
    Netherlands
    Posts
    241

    Default Re: HOW TO add/remove subpanels in detailview page

    Quote Originally Posted by southwestcrm View Post
    Add a php file (any name) to the corresponding CUSTOM sub directory for the area required (ie. to remove the Contacts subpanel from the Cases area you would add the PHP file to the folder called /custom/Extension/modules/Cases/Ext/Layoutdefs

    the content of the file will look like:

    <?php
    unset($layout_defs['Cases']['subpanel_setup']['contacts']);
    ?>
    Great solution, this works fine for me!

    I appreciate, many thanks
    Kind regards,

    De Kleine Media


    SugarCRM CE v.5.2.0h
    Windows platform
    MySQL v.5.1
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

  7. #7
    jgyc430 is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    19

    Default Re: HOW TO add/remove subpanels in detailview page

    Quote Originally Posted by dekleinemedia View Post
    Great solution, this works fine for me!

    I appreciate, many thanks

    Hi,

    I used to have the same requirement as above and i have made the changes exactly like above. Now i need to undo the changes but everytime i delete the file and do a rebuild and repair the file will re-appear again.

    Is there a way i could permanent remove this file? Do i need to clear some cache from somewhere?

    Please help!

    Thanks.

  8. #8
    ishaan is offline Senior Member
    Join Date
    Apr 2009
    Location
    Mumbai,India
    Posts
    100

    Default Re: HOW TO add/remove subpanels in detailview page

    Comment what u have written in layoutdefs.ext.php


    Cheers,
    Ishaan

  9. #9
    dekleinemedia is offline A Prolific Poster
    Join Date
    May 2009
    Location
    Netherlands
    Posts
    241

    Default Re: HOW TO add/remove subpanels in detailview page

    Quote Originally Posted by jgyc430 View Post
    Hi,

    I used to have the same requirement as above and i have made the changes exactly like above. Now i need to undo the changes but everytime i delete the file and do a rebuild and repair the file will re-appear again.

    Is there a way i could permanent remove this file? Do i need to clear some cache from somewhere?

    Please help!

    Thanks.
    Hi,

    Try to clear the whole map: custom\Extension\modules\your_module\Ext\Layoutdefs

    Go to Repair -> Rebuild Extensions

    Remeber this is the "DetailView" of the module.

    Goodluck
    Kind regards,

    De Kleine Media


    SugarCRM CE v.5.2.0h
    Windows platform
    MySQL v.5.1
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Detailview subpanels to retain pagination
    By stevec in forum Feature Requests
    Replies: 0
    Last Post: 2009-05-05, 09:11 AM
  2. how to add/remove subpanels in detailview page
    By prasannagowri in forum Help
    Replies: 3
    Last Post: 2009-04-10, 12:11 PM
  3. How to hide subpanels from the DetailView of Modules?
    By ingo.jaeckel in forum Developer Help
    Replies: 4
    Last Post: 2008-06-26, 11:52 AM
  4. DetailView Subpanels error in a Custom Module
    By pniranjan in forum Developer Help
    Replies: 1
    Last Post: 2008-04-21, 11:23 PM
  5. Remove Subpanel From Contacts DetailView?
    By swhitlow in forum Developer Help
    Replies: 1
    Last Post: 2005-11-03, 10:27 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
  •