Jump to content

[solved] How to detect if a Hook has any modules attached to it?


mikecheung

Recommended Posts

I need some help figuring out if there is a way to determine if a hook has content assigned to it on a specific page and based on this information do something within a template file.

 

Example :

 

Scenario : On my category page, my left column hook has a menu module to be displayed, but on my product page my left column hook does not have any module assigned to be displayed.

 

Goal : In header.tpl, I would like to add a class to my main content wrapper if left column hook does not have any content to be displayed.

 

I hope this make sense and appreciate any help the community can provide.

 

Thanks.

Edited by mikecheung (see edit history)
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...