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

A node and all its children.

Discussion in 'XenForo Development Discussions' started by arms, Jan 17, 2014.

  1. arms

    arms Active Member

    I have a node with many children.

    I use
    <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?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    <xen:if is="{$forum.parent_node_id} == x">

    Not sure if that will work for you.
    arms likes this.
  3. arms

    arms Active Member

    <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.

Share This Page