Results 1 to 6 of 6
  1. #1
    New Pligger DarrenS's Avatar
    Joined
    May 2007
    Posts
    17
    Thanks
    Received:0
    Given: 0

    [SOLVED] Default Sidebar Modules to Collapsed?

    Hi folks,

    I am using 9.5 and yget. Is there any way to set a specific sidebar module (such as Categories, which with 30+ items is quite long) to default to the closed, collapsed position?

    Thanks!

  2. #2
    Casual Pligger elquiosco's Avatar
    Joined
    Mar 2007
    Posts
    51
    Thanks
    Received:0
    Given: 0

    Wink

    Quote Originally Posted by DarrenS View Post
    Hi folks,

    I am using 9.5 and yget. Is there any way to set a specific sidebar module (such as Categories, which with 30+ items is quite long) to default to the closed, collapsed position?

    Thanks!
    Edit your categories.tpl in the sidebar modules directory and add a style attribute "display: none" into your cats div

    {php}
    echo "<span><a onclick=\"new Effect.toggle ('cats','appear', {queue: 'end'}); \"> <img src=\"".my_pligg_base."/templates/".The_Template."/images/expand.png\"></a></span>";
    {/php}
    <a href="#">{#PLIGG_Visual_Category_Title#}</a>
    </div>

    <div id="cats" style="display:none;" "padding-bottom:1px">

    hope it helps..

  3. #3
    New Pligger DarrenS's Avatar
    Joined
    May 2007
    Posts
    17
    Thanks
    Received:0
    Given: 0
    Works like a charm! Thanks!

  4. #4
    New Pligger goopopp's Avatar
    Joined
    May 2007
    Posts
    29
    Thanks
    Received:0
    Given: 0
    And how to make sidebar comment collapsed ? Need to collapsed it too.

  5. #5
    Casual Pligger AshMCairo's Avatar
    Joined
    May 2007
    Posts
    88
    Thanks
    Received:0
    Given: 0
    I just tried this on my site and it doesn't work Specifcally what happens is that all I get is a small part of the bottom of the sidebar mod' I'm trying to collapse, but no little title or arrow to expand it.

  6. #6
    Casual Pligger AshMCairo's Avatar
    Joined
    May 2007
    Posts
    88
    Thanks
    Received:0
    Given: 0
    Neveremind! I got it work. Now what's bugging me is that stray line at the bottom of the links list, but that's another problem.

Similar Threads

  1. Tag cloud to be the default sidebar content?
    By MapsRus in forum Questions & Comments
    Replies: 1
    Last Post: 04-15-2010, 01:40 AM
  2. Missing css in some Sidebar modules
    By limer in forum Questions & Comments
    Replies: 2
    Last Post: 01-01-2008, 09:19 PM
  3. Sidebar modules are not loading!
    By vissu in forum Questions & Comments
    Replies: 7
    Last Post: 09-11-2007, 09:40 PM
  4. Performance and Default Modules?
    By bizdiggers in forum Questions & Comments
    Replies: 19
    Last Post: 03-15-2007, 07:15 PM
  5. Moveable sidebar modules
    By AshDigg in forum Questions & Comments
    Replies: 6
    Last Post: 08-15-2006, 05:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg