Results 1 to 8 of 8
  1. #1
    New Pligger chowell's Avatar
    Joined
    Jun 2007
    Posts
    9
    Thanks
    Received:0
    Given: 0

    How to hide/show (collapse) Subcategories in sidebar

    I have over 50 subcategories under a primary category...

    Is there a way to make a rollover menu that will show all 50 subcategories (in the sidebar)? I still want the primary category to link to its own page and I want each subcategory to link to its respective page.

    Anyone done this before or know of a previous post I can reference?

    Cory

  2. #2
    Pligg Donor dollars5's Avatar
    Joined
    Dec 2006
    Posts
    1,960
    Thanks
    Received:0
    Given: 0
    By default it is in the manner you want it. The parent category will be displayed with a link to its own page, sub categories will be with a tab spacer and link t their very own pages.

  3. #3
    New Pligger chowell's Avatar
    Joined
    Jun 2007
    Posts
    9
    Thanks
    Received:0
    Given: 0
    Understood, but I really don't want all 50 subcategories displayed at all times. Is there a reasonably easy way to make them a rollover list/menu?

  4. #4
    New Pligger plador's Avatar
    Joined
    Sep 2007
    Posts
    6
    Thanks
    Received:0
    Given: 0

    collapsible sub categories

    sad to think that we cannot collapse sub categories by default..my whole concept is wasted now...

    chowell, any new input on this ?

  5. #5
    Constant Pligger tbones's Avatar
    Joined
    Apr 2007
    Posts
    1,042
    Thanks
    Received:1
    Given: 0
    Have look at http://forums.pligg.com/pligg-tutori...ent-addon.html

    It doesn´t work with v9.5, it´s untested with v9.6 and works with v9.7+

  6. #6
    New Pligger plador's Avatar
    Joined
    Sep 2007
    Posts
    6
    Thanks
    Received:0
    Given: 0

    thanks for the suggestion

    i will try it out..much obliged...

  7. #7
    New Pligger chowell's Avatar
    Joined
    Jun 2007
    Posts
    9
    Thanks
    Received:0
    Given: 0
    I will also check it out, since I've been unsuccessful so far.

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

    I implemented a code I found in this forum for a roll down category menu which avoids to display all cats and subcats in the sidebar. I don't know if this is what you need. I put the code in my header.tpl but it can be inserted in the sidebar.tpl instead.

    Code:
    <div id="cats" style="padding-bottom:1px">
    {if $pagename eq "published"}
    <form name="published" id="published" action="{$URL_maincategory, $cat_array[thecat].safename}" method="get" >
    <select name="category" >
    {section name=thecat loop=$cat_array}
    <option value = "{$cat_array[thecat].safename}">
    {if $cat_array[thecat].spacercount lt $lastspacer}{$cat_array[thecat].spacerdiff|repeat_count:''}{/if}
    {if $cat_array[thecat].spacercount gt $lastspacer}{/if}
    {$cat_array[thecat].spacercount|repeat_count:' '}
    {$cat_array[thecat].name}
    
    {assign var=lastspacer value=$cat_array[thecat].spacercount}
    </option>
    
    {/section}
    </select>
    <input type="submit" value="seleccionar" >
    </form>
    {else}
    <form name="upcoming" id="upcoming" action="{$URL_queuedcategory, $cat_array[thecat].safename}" method="get" >
    <select name="category" >
    {section name=thecat loop=$cat_array}
    <option value = "{$cat_array[thecat].safename}">
    {if $cat_array[thecat].spacercount lt $lastspacer}{$cat_array[thecat].spacerdiff|repeat_count:''}{/if}
    {if $cat_array[thecat].spacercount gt $lastspacer}{/if}
    {$cat_array[thecat].spacercount|repeat_count:' '}
    {$cat_array[thecat].name}
    
    {assign var=lastspacer value=$cat_array[thecat].spacercount}
    </option>
    
    {/section}
    </select>
    <input type="submit" value="seleccionar" >
    </form>
    {/if}
    </div>

Similar Threads

  1. Hide or Collapse Subcategories?
    By abcdefgary in forum Questions & Comments
    Replies: 4
    Last Post: 12-24-2008, 04:02 PM
  2. Replies: 2
    Last Post: 11-11-2007, 04:46 PM
  3. Main RSS feeds to show data for subcategories
    By kosir in forum Questions & Comments
    Replies: 0
    Last Post: 09-07-2007, 06:05 PM
  4. digitalnature collapse sidebar menu
    By kbanse in forum Questions & Comments
    Replies: 1
    Last Post: 06-19-2007, 04:30 AM
  5. Hide Subcategories
    By Consumed in forum Questions & Comments
    Replies: 0
    Last Post: 06-12-2007, 01:50 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