MathiasReker Posted September 26, 2015 Share Posted September 26, 2015 Hello, I am using a banner module. I need to show the banner on top of a single category. I can hook the banner to any hook, but I don't know how to make a hook for a specifc category. Hope someone can help me :-) Regards Link to comment Share on other sites More sharing options...
yaniv14 Posted September 26, 2015 Share Posted September 26, 2015 You can use this module to achieve what you want without making any code modification. https://mypresta.eu/modules/front-office-features/html-box.html Link to comment Share on other sites More sharing options...
MathiasReker Posted September 26, 2015 Author Share Posted September 26, 2015 Sorry, but the module could not do the job. Eg. I want to place {hook h="myhook"} on top of a specefic category - not any category. Link to comment Share on other sites More sharing options...
yaniv14 Posted September 26, 2015 Share Posted September 26, 2015 The pro version of that module support custom hooks and also you can select the category you want to hook to display in. You can just copy your banner into the rich text editor that come with the module. If you don't want to use the module and you already created your new hook with the module installation, you can simply attach you hook "{hook h="myhook"} inside the desire place in category.tpl (in your theme folder) and place the code inside if statement like.... {if $category->id == 5} {hook h="myhook"} {/if} of course 5 is just an example. Good luck 1 Link to comment Share on other sites More sharing options...
Recommended Posts