Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Conditional statement for sub-category
 
wynlim
Jr. Member
 
Total Posts:  3
Joined:  2008-07-16
 

Hi,
I want to add a css class to display if the page is on a parent category page, and another class if it belongs to a sub-category. I am not familiar with zend at all so I wonder if it is possible to have a conditional if statement to either test for whether the category is a parent category, or if the url structure is /category or /category/sub-category.

Any help is very much appreciated! smile Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top