Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted August 20, 20159 yr When building plugins, I am sometimes in a situation where I need to attach a template hook somewhere in the global template. This, of course, means that my hook is going to show up everywhere in the site, which is not always what I want. I often want to limit the plugins' display to certain sections of the site only. This means I need something like this: {{if $section == 'forum'}} {template = 'my_hook'} {{endif}} if I want the hook to only show in the forums. What I don't know is how to get that $section variable. What is the best way? I hope this is simple enough
Archived
This topic is now archived and is closed to further replies.