XF 2.1 Weird bug? Can't put a content check inside a form?

Jaxel

Well-known member
This works fine:
Code:
<xf:if contentcheck="true">
    <xf:contentcheck>
    </xf:contentcheck>
    
    <xf:form>
    </xf:form>
</xf:if>

However, this does not:
Code:
<xf:if contentcheck="true">
    <xf:form>
        <xf:contentcheck>
        </xf:contentcheck>
    </xf:form>
</xf:if>

If you click save on a template with the above code, it will return the following error:
Tag must be a valid conditional using an is attribute or content checking.
 
contentcheck has to be a direct child of the xf:if (at least as far as template tags go), was the same way in xf1 too I believe
 
Top Bottom