Orit Active member Jan 8, 2025 #1 Hi Where can I read an explanation about the contentcheck tag? What it does? How to use it? When? Thanks!!
Hi Where can I read an explanation about the contentcheck tag? What it does? How to use it? When? Thanks!!
Jeremy P XenForo developer Staff member Jan 8, 2025 #2 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).
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).