XF 2.3 Trending content, Display condition, exclude node

-Eric-

Member
Hi,

I would like to ignore 3 notes, data-container-key (html): node-18, node-28, node-2
I tried filtering but it didn't work ( example from @Old Nick )

Edit widget: Trending content > Display condition: in_array($xf.reply.containerKey, ['node-2'])
I used this just to test, but the widget doesn't show up, I thought it would display the node topic.
(without any filter, displays topic of node 2)

then I would use it like this:
!in_array($xf.reply.containerKey, ['node-28', 'node-18', 'node-2'])
 
used this just to test, but the widget doesn't show up, I thought it would display the node topic.
(without any filter, displays topic of node 2)
This condition will make the widget only show up in node 2 if added to a location that is shown in node 2.
If the widget is only shown in non-node locations (like Forum list: Sidebar) it will not be displayed at all.

It is not possible to limit the nodes that are considered for trending content via display conditions.

 
Back
Top Bottom