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

XF 1.5 Template Variable - xen:if

#1
I'm trying to use the following template syntax in one of my templates:
Code:
<xen:if is="in_array({$forum.node_id}, array(1, 2, 3, 4, 5, 6))"> The Content </xen:if>

However, it appears the content is not displaying in any of the specified forum nodes.
 

Brogan

XenForo moderator
Staff member
#2
That is the correct syntax.

Which template are you adding it to? Is the $forum param available in it?

Are you sure the node IDs are correct?