XF 2.2 can't add page_node conditional in page_container template?

Ludachris

Well-known member
Licensed customer
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.
 
Dump the vars to see what is available: {{ dump(vars()) }}.

It will likely be something like: $__globals.forum.node_id .
 
Back
Top Bottom