Gfinfo web Posted February 5 Share Posted February 5 (edited) Hello, I am using the module from Prestahero: "Manufacturer/Brand Logos Carousel Slider PRO". For layout purposes, I am using the module's custom hook to bypass the two-column layout at the bottom. (Screenshot: themes\theme_1151 (child classic)\templates\layouts\layout-both-columns.tpl) However, in this state, I can't control its position properly, as this custom hook does not appear in the positions list. Is there a way to modify the hook so that it displays only on the index page? Edited February 5 by Gfinfo web (see edit history) Link to comment Share on other sites More sharing options...
Divine Posted February 5 Share Posted February 5 Hello, You can just surround your hook by the proper condition : {if $page.page_name == 'index'} <hook h="etsManufacturer"> {/if} Link to comment Share on other sites More sharing options...
Gfinfo web Posted February 5 Author Share Posted February 5 It worked! Thank you! 1 Link to comment Share on other sites More sharing options...
Gfinfo web Posted February 6 Author Share Posted February 6 Just a follow up. I included the code like this for 3 particular pages: {if $page.page_name == 'index'} {hook h='etsManufacturer'} {/if} {if $page.page_name == 'category'} {hook h='etsManufacturer'} {/if} {if $page.page_name == 'product'} {hook h='etsManufacturer'} {/if} Is there a better way or is this the best way? Link to comment Share on other sites More sharing options...
Divine Posted February 6 Share Posted February 6 Yes there is a better way : {if $page.page_name == 'index' || $page.page_name == 'category' || $page.page_name == 'product'} {hook h='etsManufacturer'} {/if} Link to comment Share on other sites More sharing options...
Gfinfo web Posted February 6 Author Share Posted February 6 Thank you! Link to comment Share on other sites More sharing options...
Divine Posted February 6 Share Posted February 6 You're welcome 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