uddhava Posted May 12, 2011 Share Posted May 12, 2011 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 More sharing options...
uddhava Posted May 14, 2011 Author Share Posted May 14, 2011 But can i do this from a smarty template ? Link to comment Share on other sites More sharing options...
uddhava Posted May 15, 2011 Author Share Posted May 15, 2011 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 More sharing options...
uddhava Posted May 15, 2011 Author Share Posted May 15, 2011 In 1.5 the PS team is 'planning' to introduce dynamic theming based upon categories/products? Link to comment Share on other sites More sharing options...
uddhava Posted May 15, 2011 Author Share Posted May 15, 2011 Yeah, i saw that and read your thorough comments on it. I think i will comment on them in the original thread. Maybe the PS team (and who are they actually?) will read them. 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