Jump to content

Categories block - show only specyfic categories


jeremiash

Recommended Posts

Why are you wanting to show only specific categories? You can click on the tick icon in the "Displayed" column for a category to hide it, or edit a category and make it accessible only to certain customer groups. If you are wanting to hide the category from the category block, but make it still browsable by entering the URL manually, you will need to edit modules/blockcategories/category-tree-branch.tpl and add the following to the top:

{if $node.id != 2 AND $node.id != 3}



and the following at the bottom:

{/if}



This will hide category 2 and 3 from the category block. Change the IDs and add more as required.

Link to comment
Share on other sites

  • 1 month later...
  • 11 months later...
  • 6 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...