megabosx Active member Dec 31, 2019 #1 I can't seem to find documentation about the xf:contentcheck tag which is used extensively in templates, is this documented anywhere?
I can't seem to find documentation about the xf:contentcheck tag which is used extensively in templates, is this documented anywhere?
Jeremy P XenForo developer Staff member Dec 31, 2019 #2 It's used in combination with <xf:if contentcheck="true"> to display container elements only if the <xf:contentcheck> child is not empty. For example, the <div> will only be rendered if $message has a value: HTML: <xf:if contentcheck="true"> <div> <xf:contentcheck>{$message}</xf:contentcheck> </div> </xf:if>
It's used in combination with <xf:if contentcheck="true"> to display container elements only if the <xf:contentcheck> child is not empty. For example, the <div> will only be rendered if $message has a value: HTML: <xf:if contentcheck="true"> <div> <xf:contentcheck>{$message}</xf:contentcheck> </div> </xf:if>