Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2006
    Location
    At Home
    Posts
    370
    Plugin Contributions
    0

    Default How to create new category without displaying it's link?

    I would like to create a new category but I don't want the link for that new category to appear in the categories sidebox. I want to place its link to other place.

    Is it possible to disable that new category link from the categories sidebox? Thank you.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: How to create new category without displaying it's link?

    There's a 'Hide Categories' mod in Downloads, but I'm not sure how it works.

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to create new category without displaying it's link?

    It would function to hide the new category from everybody except customers you give the link to (if any). It might be overkill for this application, though - you just want the category name to not appear in the sidebox, if I understand correctly.

    For that you could edit /includes/templates/your_template/sideboxes/tpl_categories.php. Find this near the top:
    PHP Code:
        if (zen_get_product_types_to_category($box_categories_array[$i]['path']) == or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
          
    // skip if this is for the document box (==3) 
        
    } else { 
    and add

    $box_categories_array[$i]['path'] == 23 or

    to the if statement to get
    PHP Code:
        if ($box_categories_array[$i]['path'] == 23 or zen_get_product_types_to_category($box_categories_array[$i]['path']) == or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
          
    // skip if this is for the document box (==3) 
        
    } else { 
    Change 23 to the cPath for your category.
    This code will skip display of that category in the categories sidebox.

  4. #4
    Join Date
    May 2008
    Posts
    31
    Plugin Contributions
    0

    Default Re: How to create new category without displaying it's link?

    Glenn

    how can i hide 2 categories this code hide one but i need to hide 2 categories

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to create new category without displaying it's link?

    Answered for your post in the Categories Dressing thread.

 

 

Similar Threads

  1. Trying to create a new pages - Done this with EZPages, but how do I link to it?
    By joecooper in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 19 Mar 2015, 12:03 PM
  2. How to create a new sidebox category?
    By hara in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 3 Apr 2011, 06:16 AM
  3. cannot create new template without messing up display
    By Owen Fowler in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 2 Jun 2009, 02:48 PM
  4. How to create New Link in Top Navigation Bar
    By layoyo in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Oct 2008, 08:56 PM
  5. How to prevent New Products from displaying on category page
    By JHouse in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Apr 2008, 01:07 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
  •  
disjunctive-egg