XF 2.2 Search forum type and $forum.node_id


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.

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

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:
Top Bottom