Ludachris Well-known member Nov 24, 2021 #1 I'm trying to run a check for node_id in the page_container template to display content in a specific node. Will it not work in that template? I've tried both: Code: <xf:if is="in_array({$forum.node_id}, [x])"> Code: <xf:if is="$forum.node_id == x"> Neither worked.
I'm trying to run a check for node_id in the page_container template to display content in a specific node. Will it not work in that template? I've tried both: Code: <xf:if is="in_array({$forum.node_id}, [x])"> Code: <xf:if is="$forum.node_id == x"> Neither worked.
Paul B XenForo moderator Staff member Nov 24, 2021 #2 Dump the vars to see what is available: {{ dump(vars()) }}. It will likely be something like: $__globals.forum.node_id . Upvote 0 Downvote
Dump the vars to see what is available: {{ dump(vars()) }}. It will likely be something like: $__globals.forum.node_id .
Ludachris Well-known member Nov 24, 2021 #3 $containerKey is what I needed. Thanks! Upvote 0 Downvote