XF 2.1 Show widget in specific node

7ore

Member
I have a widget that I want shown in a specific forum category and I can't get it to work.

In another widget I have a "Display condition" for a group, and that works with $xf.visitor.isMemberOf(140)
So I tried to adapt the same style and with trial and error I tried these variants after doing some searches:
$forum.node_id(139)
$context.category.node_id(139)
$forum.node_id == 139
$category.node_id(139)

And some other variants.
In some cases the widgets doesn't show at all and in other cases it is shown on all nodes.
What condition should I use to enable the widget in a specific forum in the "forum view Sidebar"?
 
Top Bottom