FoxSecrets
Active member
I need to show my widget according to certain condition, and using template_modification to make it.
However if I set condition 1 (above), it shows the widget above but also in the bottom (but only the frame, not content, it's buggy).
It seems rendering twice even applied to condition. How can I solve that?
However if I set condition 1 (above), it shows the widget above but also in the bottom (but only the frame, not content, it's buggy).
It seems rendering twice even applied to condition. How can I solve that?
Code:
<xf:if is="condition == 1">
<xf:widget key="my_widget" />
</xf:if>
<xf:macro name="node_list" arg-children="{$nodeTree}" arg-extras="{$nodeExtras}" />
<xf:if is="condition == 2">
<xf:widget key="my_widget" />
</xf:if>