• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 How to add a script only to index page?

rainmotorsports

Well-known member
#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.