Jump to content

Exclude category from categoryblock


dzinno

Recommended Posts

Hi guys, 

 

i need to exclude the category and its subcategories from the left categoryblock. But i still need them to be accessible with the URL, so just turning them off is not an option. 

I found some manuals but none worked for me, since they were for PS 1.4. or 1.5.

 

I'm using PS 1.6.1.4.

 

Can someone help me with that?

Thank you

Dzinno

Link to comment
Share on other sites

Try editing themes/<your_theme>/modules/blockcategories/category-tree-branch.tpl and adding the following to the top:

{if $node.id != 7 && $node.id != 8}

And the following to the bottom of the file:

{/if}

Change 7 and 8 to the IDs of the parent categories you want hidden from the tree. Children of those categories will automatically be hidden. Add more && as needed.

Link to comment
Share on other sites

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...