XF 2.1 how to get category ids in template?

high1976

Active member
trying to change a layout in PAGE_CONTAINER based on node_ids

old 1.5 code:
Code:
 <xen:if is="{$category.node_id} == 528 OR {$forum.node_id} == 168" >
tried to get cat-id but
Code:
 <xf:if is="in_array($__globals.category.node_id, [528, 705, 234])">
doesn't work.
Code:
 <xf:if is="in_array($__globals.forum.node_id, [168, 446, 497, 584])">
just works for nodes ofc
is there any magic trick to get that working? Would like to avoid a sub-template, thx
 
Back
Top Bottom