XF 2.2 The contentcheck tag

Orit

Active member
Hi
Where can I read an explanation about the contentcheck tag?
What it does?
How to use it?
When?

Thanks!!
 
It's paired with <xf:if contentcheck="true">, usually to only output wrapping elements if there is ultimately some non-empty child:

HTML:
<xf:if contentcheck="true">
    <div class="block-row">
        <xf:contentcheck>
            {$content}
        </xf:contentcheck>
    </div>
</xf:if>

In the above case, the .block-row container will only be output when the <xf:contentcheck> contains non-whitespace (ie. when $content is a non-empty string).
 
Back
Top Bottom