arms Well-known member Jan 17, 2014 #1 I have a node with many children. I use Code: <xen:if is="in_array({$forum.node_id}, array(2,6,8, 9, 10,23,24,25,26,27))"> Is there a way to to reference node 2 and all its children without having to remember to amend this every time I add a child node?
I have a node with many children. I use Code: <xen:if is="in_array({$forum.node_id}, array(2,6,8, 9, 10,23,24,25,26,27))"> Is there a way to to reference node 2 and all its children without having to remember to amend this every time I add a child node?
P Paul B XenForo moderator Staff member Jan 17, 2014 #2 <xen:if is="{$forum.parent_node_id} == x"> Not sure if that will work for you.
arms Well-known member Jan 17, 2014 #3 <xen:if is="{$forum.parent_node_id} == 5 OR {$forum.node_id} == 5"> Thanks very much @Brogan . Shame on me for not checking your FAQ more thoroughly.
<xen:if is="{$forum.parent_node_id} == 5 OR {$forum.node_id} == 5"> Thanks very much @Brogan . Shame on me for not checking your FAQ more thoroughly.