dzinno Posted September 23, 2016 Share Posted September 23, 2016 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 More sharing options...
rocky Posted September 24, 2016 Share Posted September 24, 2016 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 More sharing options...
dzinno Posted September 25, 2016 Author Share Posted September 25, 2016 Thank you, it works now. I did it in wrong file before. in /modules/blockcategories/category-tree-branch.tpl Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now