Display items on new sub-threads

audioroom

New member
Licensed customer
Display condition syntax to match a node and all its descendants?
I have a widget set to "Thread view: Below messages" that I want to display only within a specific parent node (ID: 22) and all of its child/sub nodes automatically.
My current working condition for specific node IDs is:
<span><span>$xf.reply.container.node_id IN [22, 23, 24, 25, 26] AND $xf.visitor.isMemberOf([5])</span></span>
This works fine but requires manual updates every time I add a new sub-node.

What is the correct display condition syntax to check if node 22 is anywhere in the current node's parent tree, so all descendants are covered automatically without hardcoding each ID?
 
Back
Top Bottom