XF 2.1 conditional statement, how to

Old Nick

Well-known member
Hello,

How to write this more code compliant ?
HTML:
        <xf:if is="$xf.visitor.user_id">
        <xf:if is="$template == 'forum_list'">
              ...
        </xf:if>
        </xf:if>

Thanks
 
Hello,

How to write this more code compliant ?
HTML:
        <xf:if is="$xf.visitor.user_id">
        <xf:if is="$template == 'forum_list'">
              ...
        </xf:if>
        </xf:if>

Thanks
Hello,

Did you try this :
Code:
<xf:if is="$xf.visitor.user_id AND $template == 'forum_list'">
    You code here
</xf:if>

Doc :

Regards, SyTry
 
Back
Top Bottom