XF 2.2 Search forum type and $forum.node_id

Azaly

Active member
Hi! I'm trying to change text for one of my search forum node with id=79, but code for regular forum type won't work.

Code:
<xf:if is="$forum.node_id == 79">
                    {{ phrase('last_games') }}
                <xf:else />
                    {{ phrase('widget.forum_overview_new_posts') }}
</xf:if>

Please help.
 
For future reference, you can add this to the template you are working with and it will show all the vars natively available: {{ dump(vars()) }} .

More detailed help here:
 
Back
Top Bottom