XF 2.2 How can I exlude a category view or thread view for a widget to show up?

NandorHUN

Active member
Hi Guys!

I set up a widget to show up in Category veiw: Sidebar.
There's a category called "X" I want to exlude - so that this widget wont show up in it. I know I can set up display condition, but it's the other way around now, becasue I want this widget to shown everywhere ... except this category.

How can I do this?
Thanks.
 
Solution
This is the condition to show a widget in a single node:
Code:
$xf.reply.containerKey == 'node-2'


This is the condition to not show a widget in a single node:
Code:
$xf.reply.containerKey != 'node-2'


This is the condition to show a widget in multiple nodes:
Code:
in_array({$xf.reply.containerKey}, ['node-2', 'node-3'])


This is the condition to not show a widget in multiple nodes:
Code:
!in_array({$xf.reply.containerKey}, ['node-2', 'node-3'])
This is the condition to show a widget in a single node:
Code:
$xf.reply.containerKey == 'node-2'


This is the condition to not show a widget in a single node:
Code:
$xf.reply.containerKey != 'node-2'


This is the condition to show a widget in multiple nodes:
Code:
in_array({$xf.reply.containerKey}, ['node-2', 'node-3'])


This is the condition to not show a widget in multiple nodes:
Code:
!in_array({$xf.reply.containerKey}, ['node-2', 'node-3'])
 
Solution
Back
Top Bottom