Jump to content

How to show only 'top level' category links?


Guest benfrain.com

Recommended Posts

Guest benfrain.com

I have a sidebar showing main and sub-categories as I want. However, I would like to add a top 'navigation' bar/menu that only shows the top level categories. Is there a standard snippet of code that will do this?

For example, in the categories.tpl file, this line of code is used to call the categories (it generates both top level and sub categories when the DHTML menu is enabled):

<a href="index.php?_a=viewCat&amp;catId={DATA.cat_id}">{DATA.cat_name} </a>

My question is, is it possible to amend this line so that instead of showing top level and sub categories, it ONLY shows the top level categories?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...