N NeoCHI Active member May 29, 2016 #1 Just as the title says. I'd like to add a script but only have it load for the forum_index page. How do I do this?
Just as the title says. I'd like to add a script but only have it load for the forum_index page. How do I do this?
rainmotorsports Well-known member May 29, 2016 #2 Might be another way but there is one sure fire way. You can do a template check to see what controller is in play and display only on that. I use this for xenporta: Code: <xen:if is="{$controllerName} == 'EWRporta_ControllerPublic_Portal'"></xen:if> Off the top of my head not sure which controller runs with the forum index but figure that out and you should be golden. Upvote 0 Downvote
Might be another way but there is one sure fire way. You can do a template check to see what controller is in play and display only on that. I use this for xenporta: Code: <xen:if is="{$controllerName} == 'EWRporta_ControllerPublic_Portal'"></xen:if> Off the top of my head not sure which controller runs with the forum index but figure that out and you should be golden.
Mike XenForo developer Staff member May 29, 2016 #3 Can you simply add it to the forum_list template? Upvote 0 Downvote