Results 1 to 9 of 9
  1. #1
    Member xplosive0012's Avatar
    Joined
    Mar 2011
    Posts
    48

    Hide particular category from navigation

    Hello,
    I would like to know if it is possible to NOT show a certain category on the navigation bar? and if so... could someone please explain how do it.

    Thanks.

  2. #2
    Casual Pligger vwdw's Avatar
    Joined
    Apr 2010
    Posts
    81
    In sidebar_modules/categories.tpl find this string:
    Code:
    {section name=thecat loop=$cat_array}
    Replace it with this code:
    Code:
    {section name=thecat loop=$cat_array}
    {if $cat_array[thecat].safename ne 'CATEGORY_I_WANT_TO_HIDE'}
    Then, find this string a little below:
    Code:
    {/section}
    Replace it with this string:
    Code:
    {/if}{/section}
    should work, at least in theory.

  3. #3
    Member xplosive0012's Avatar
    Joined
    Mar 2011
    Posts
    48
    Quote Originally Posted by vwdw View Post
    In sidebar_modules/categories.tpl find this string:
    Code:
    {section name=thecat loop=$cat_array}
    Replace it with this code:
    Code:
    {section name=thecat loop=$cat_array}
    {if $cat_array[thecat].safename ne 'CATEGORY_I_WANT_TO_HIDE'}
    Then, find this string a little below:
    Code:
    {/section}
    Replace it with this string:
    Code:
    {/if}{/section}
    should work, at least in theory.
    I'm talking about the Navigation Bar in the header.tpl
    Not sidebar?

  4. #4
    Casual Pligger vwdw's Avatar
    Joined
    Apr 2010
    Posts
    81
    Basically, there's no difference. Just find the {section} ... {/section} with categories output and modify it as I said. I'd help, but I dont have categories in header.

  5. #5
    Member xplosive0012's Avatar
    Joined
    Mar 2011
    Posts
    48
    CATEGORY_I_WANT_TO_HIDE

    What do I put there?
    The category ID, category name?
    What if I want to hide more than one category i,e, *Subcategory*, do I separate with a comma

  6. #6
    Constant Pligger voxxxlll's Avatar
    Joined
    Jun 2010
    Posts
    156
    The category name.
    If you want to hide more, you`ll have to add more if statements like those wrote by the user vwdw

  7. #7
    Casual Pligger vwdw's Avatar
    Joined
    Apr 2010
    Posts
    81
    put the "URL" of the category, ie the title you see in the status bar when you hover the link.

  8. #8
    Member xplosive0012's Avatar
    Joined
    Mar 2011
    Posts
    48
    It doesn't work.
    It will just remove the whole website?

  9. #9
    Casual Pligger vwdw's Avatar
    Joined
    Apr 2010
    Posts
    81
    post the code here then

Similar Threads

  1. hide sub category from navigation
    By thinkmarketact in forum Questions & Comments
    Replies: 0
    Last Post: 04-07-2011, 04:03 PM
  2. Mixx like category navigation?
    By rethomas07 in forum Questions & Comments
    Replies: 3
    Last Post: 08-10-2010, 08:50 PM
  3. How to hide a category
    By oobie11 in forum Questions & Comments
    Replies: 0
    Last Post: 02-16-2010, 11:15 PM
  4. Hide upcoming category
    By xaiel in forum Questions & Comments
    Replies: 2
    Last Post: 02-13-2009, 06:15 AM
  5. Category Navigation disapearing
    By newuser in forum Questions & Comments
    Replies: 5
    Last Post: 12-13-2006, 04:02 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 Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting