Results 1 to 5 of 5

Thread: How to hide subpanels from the DetailView of Modules?

  1. #1
    ingo.jaeckel is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    33

    Default How to hide subpanels from the DetailView of Modules?

    hello,

    i created several modules including a contract module. it has several relationships to other modules. for example you can add documents and products to the contract.

    now i want to hide the subpanels that sugarcrm automatically displays when i open the detail view of the contract module.
    i would like to use a upgrade safe way. i am using the latest sugarcrm 5.0.0{b|c|d}.

    with regards - ingo

  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 hide subpanels from the DetailView of Modules?

    Hi, Ingo.

    Look at the folders:
    modules/YourContractModule/metadata/subpaneldefs.php
    custom/Extension/modules/YourContractModule/Ext/Layoutdefs/layoutdefs.ext.php

    Changes in the first script is not upgrade safe, but in the second one is. So you just have to comment the array elements related to the subpanels you want to hide.

    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
    ingo.jaeckel is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    33

    Default Re: How to hide subpanels from the DetailView of Modules?

    (duplicate reply)
    Last edited by ingo.jaeckel; 2008-04-29 at 12:12 PM.

  4. #4
    ingo.jaeckel is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    33

    Default Re: How to hide subpanels from the DetailView of Modules?

    hello,

    thank you very much for your fast reply.

    i do not have the files you mentioned:
    • modules/YourContractModule/metadata/subpaneldefs.php
    • custom/Extension/modules/YourContractModule/Ext/Layoutdefs/layoutdefs.ext.php


    however i have a file custom/Extension/modules/<NameOfModule>/Ext/Layoutdefs/<NameOfPackage>.php that contained several layout_defs definitions. i commented all of them out.
    Code:
    <?php
    //$layout_defs[<NameOfModule]["subpanel_setup"]["documents"] = array (
    //  'order' => 100,
    //  'module' => 'Documents',
    //  'subpanel_name' => 'ForContractType',
    //  'get_subpanel_data' => 'documents',
    //  'add_subpanel_data' => 'Documents_idb',
    //  'title_key' => 'lbl_documents',
    //);
    ?>
    i even created a custom/Extension/modules/<NameOfModule>/Ext/Layoutdefs/layoutdefs.ext.php.php file with the same content and cleared the cache..

    but still no effect.
    Last edited by ingo.jaeckel; 2008-04-29 at 12:16 PM.

  5. #5
    Mubi is offline Sugar Community Member
    Join Date
    Jun 2008
    Posts
    40

    Default Re: How to hide subpanels from the DetailView of Modules?

    Could you please tell what are the files under custom/Extension/modules/<NameOfModule>/Ext/Layoutdefs/.

    Regards
    Mubi

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Hide Employees Modules
    By weballianz in forum Help
    Replies: 2
    Last Post: 2009-06-18, 10:20 AM
  2. DetailView Subpanels error in a Custom Module
    By pniranjan in forum Developer Help
    Replies: 1
    Last Post: 2008-04-21, 11:23 PM
  3. Replies: 2
    Last Post: 2007-10-01, 10:15 PM
  4. Hide subpanels as default
    By trilogexpert in forum Help
    Replies: 0
    Last Post: 2006-03-02, 01:15 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
  •