Results 1 to 7 of 7

Thread: Collapse all Subpanels by default

  1. #1
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Collapse all Subpanels by default

    Hi,

    Is it possible to have all subpanels collapsed by default for all Users. It will reduce the need to scroll to view subpanels.

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  2. #2
    malcolmh's Avatar
    malcolmh is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Aug 2004
    Posts
    1,712

    Default Re: Collapse all Subpanels by default

    Hi,

    I believe there is a setting in the config.php that will do this, can't remember off the top of my head what it is called
    Cheers Malcolm

    Genius4U Limited - Ingenious simple IT solutions for you / Genial einfache IT Lösungen für Sie
    http://www.genius4u.com or http://www.genius4u.de

  3. #3
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Collapse all Subpanels by default

    If you add these to your config.php file it'll collapse by default. By setting "on login" to true and "hide_subpanels" to false it'll collapse by default on login but then leave any subpanel opened by a user for the duration of their session.

    'hide_subpanels' => true,
    'hide_subpanels_on_login' => true,

  4. #4
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: Collapse all Subpanels by default

    HI Thanks,

    I though it was an option be default - I guess not.

    Thanks for the code for config.php
    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  5. #5
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: Collapse all Subpanels by default

    Can these changes in the config.php be upgrade safe or are they already?

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  6. #6
    madmat is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    Germany
    Posts
    164

    Default Re: Collapse all Subpanels by default

    Quote Originally Posted by chrislynch8 View Post
    Can these changes in the config.php be upgrade safe or are they already?
    Put them into "config_override.php" instead and they are upgrade safe.
    Like:
    PHP Code:
    $sugar_config['hide_subpanels'] =  'true'

  7. #7
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: Collapse all Subpanels by default

    Hi,

    Thanks for that. Worked a charm

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Help with default and custom subpanels
    By bstonehill in forum Help
    Replies: 1
    Last Post: 2008-06-04, 06:14 PM
  2. Replies: 1
    Last Post: 2008-05-06, 07:47 AM
  3. How to add a collapse button in all Sugar Modules
    By jeffy in forum Developer Help
    Replies: 5
    Last Post: 2008-03-28, 12:41 AM
  4. Is there a way to collapse part of a page?
    By CNS Planet in forum Help
    Replies: 1
    Last Post: 2006-06-15, 08:36 PM
  5. 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
  •