Results 1 to 1 of 1

Thread: Hide subpanel..no way to obtain it?

  1. #1
    gbattine is offline Member
    Join Date
    Jan 2009
    Posts
    11

    Default Hide subpanel..no way to obtain it?

    Hi,
    I'm a newbie of SugarCRM.
    I installed SugarCRM 4.5 on Windows 2000 Server, Php 5.2 and Apache 2.2.
    SugarCRM works correctly and I also customized it in some modules.
    My problem is I'm not able to hide a subpanel in a module.
    I read lots of posts on this question and all solutions seems not working on my side.
    In particular I'm giving my attention on this post:

    HTML Code:
    http://www.sugarcrm.com/forums/showthread.php?t=27893&highlight=hide+subpanel
    I'm trying, for example, to hide leads subpanel from Account module .
    Following this discussion I added

    PHP Code:
    <?php 
    unset($layout_defs['Accounts']['subpanel_setup']['leads']); 
    ?>
    to

    custom\modules\Accounts\Ext\Layoutdefs\layoutdefs. ext.php.

    Clearing cache and refreshing, I've these warnings:

    Warning: aSubPanel::require(modules//subpanels/.php) [function.aSubPanel-require]: failed to open stream: No such file or directory in C:\sugar\include\SubPanel\SubPanelDefinitions.php on line 66

    Fatal error: aSubPanel::require() [function.require]: Failed opening required 'modules//subpanels/.php' (include_path='.;C:\Programmi\php\pear;C:\php\pear ') in C:\web\application\include\SubPanel\SubPanelDefini tions.php on line 66

    I opened this path and line 66 is:

    PHP Code:
    require($def_path); 
    where def_path is so defined:

    PHP Code:
    $def_path 'modules/'.$this->_instance_properties['module'].'/subpanels/'.$this->_instance_properties['subpanel_name'].'.php'


    Could anyone help me?
    I hope in your help, thanks...
    Last edited by gbattine; 2009-01-29 at 11:18 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to obtain SOAP calls from sugar
    By alek75 in forum Developer Help
    Replies: 3
    Last Post: 2008-12-16, 06:27 PM
  2. hide tabs but allow subpanel
    By mikesolomon in forum Help
    Replies: 17
    Last Post: 2008-08-08, 08:28 AM
  3. Replies: 0
    Last Post: 2008-07-11, 05:33 PM
  4. Where can I obtain _500.Colombia
    By jmgonzalez68 in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2008-04-22, 07:29 PM
  5. Subpanel Show/Hide functionality
    By openworld in forum Developer Help
    Replies: 2
    Last Post: 2007-04-23, 01:00 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
  •