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

XF condition for page ?

tafreehm

Well-known member
#1
Hello,
I wanna include some JS and CSS code in header. But I only want it to appear at one specific page.
can someone guide me with <xen: if> condition for page, please ?
Thank You
 

Brogan

XenForo moderator
Staff member
#4
The template for a page node is pagenode_container

<xen:if is="{$contentTemplate} == 'pagenode_container'">
This content will show on pages
</xen:if>