Jump to content

[Solved] Different column layout depending on page and Hook content


Recommended Posts

Is it possible to test if a Hook contains any enabled modules and display a column based on that test?
In other words; I like to display a right side column on the product list page, but ONLY when the hook for this column has any module(block) to display.
As of PS 1.4.x there is a new Filter block available for selecting colors/size/etc. And i like to have this displayed on the product lists page, but only when there are filters available..

In a template file you can test with {IF} for certain conditions, but i was wondering if i can test if a Hook contains any modules/blocks?

Link to comment
Share on other sites

So the answer is no. You cannot check within a smarty template if a hook is displayed. The necessary variables are not defined. In order to accomplish it i need to change the FrontController displayHeader() method, add a new test code and define a smarty.

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