XF 2.0 How to display widget between nodelist

kelle67

Well-known member
How can I display a widget between specific nodes?

In Xf 1.5 we use hooks but that does not work in XF2 longer.

I tried to use this code in the template node_list_category.

Code:
<xf:if is="{$forum.node_id} == 12">
<xf:widget key="sc_last_items" />
</xf:if>

But it does not work.
1539241417359.webp
 
@Chris D, @Brogan, @Mike
maybe you can answer?
Some member have already asked exactly the same.
Does this conditional statemant still work in XF2 or not?

Code:
<xf:if is="{$forum.node_id} == x">
        Show Content...
</xf:if>

If yes, what are we all doing wrong?

If not, what alternative is there for that?
 
Back
Top Bottom