Jump to content

How to create Hook for a category


Recommended Posts

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

  • Thanks 1
Link to comment
Share on other sites

×
×
  • Create New...