Jump to content

[Solved] Category groups - how to get access to the variable in my tamplate


Recommended Posts


How can I pull out categories group variable to my template code?
I need to do if/else statement in categories.tpl file

something like:

If current category is in a group id=4 do this else do that


Share this post

Link to post
Share on other sites

New one:

1) You can override ObjectModel / Controller from the "override" folder.
2) You can develop a module that hooks and adds the necessary variable (usually a good decision when you need some other changes as well and pack them up in a custom module)
3) You can hardcode it at ObjectModel / Controller

Just check the ObjectModel / Controller files for the available variables.

Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More