XF 2.2 {{ dump($var) }} Can't figure out this conditional for certain template

John917

Active member
I'm trying to figure out how to make a conditional like this.
The template is xfrm_resource_view

<xf:if is="!$resourceCategory.resource_category_id == 24 OR !$resourceCategory.parent_category_id == 24">
I've tried some form of this, but they aren't working. Usually works on page container template.

So I tried {{ dump($var) }} that the jedi @Brogan taught me but it comes out null in this template?
Also, how do I {{ dump($var) }} for a certain template like in xf1?

Spent a good hour on this now :( I also tried the "key" one I forget the exact conditional.
 
It is actually {{ dump(vars()) }}
Oh No Wow GIF by The Great British Bake Off
 
Top Bottom