snugRugBug Posted August 20, 2015 Share Posted August 20, 2015 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 Link to comment Share on other sites More sharing options...
newbie LAC Posted August 20, 2015 Share Posted August 20, 2015 Link to comment Share on other sites More sharing options...
snugRugBug Posted August 20, 2015 Author Share Posted August 20, 2015 Thank you so much, you are the hero Gotham deserves! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.