XF 2.1 Can't hide an element from pages that don't use X template

Wyvh

Member
Hey there,
I'm trying to hide the big part of the following code if the page isn't using the template forum_list. Doesn't seem to be working.

PHP:
    <xf:if is="{$contentTemplate} != 'forum_list'">
        <xf:if is="$headerHtml is not empty">
            <div class="p-body-header">
                {$headerHtml|raw}
            </div>
        <xf:elseif contentcheck="true" />
            <div class="p-body-header">
            <xf:contentcheck>
                <xf:if contentcheck="true">
                    <div class="p-title {{ $noH1 ? 'p-title--noH1' : '' }}">
                    <xf:contentcheck>
                        <xf:if is="!$noH1">
                            <h1 class="p-title-value">{$h1}</h1>
                        </xf:if>
                        <xf:if contentcheck="true">
                            <div class="p-title-pageAction"><xf:contentcheck><xf:pageaction /></xf:contentcheck></div>
                        </xf:if>
                    </xf:contentcheck>
                    </div>
                </xf:if>

                <xf:if is="$description is not empty">
                    <div class="p-description">{$description}</div>
                </xf:if>
            </xf:contentcheck>
            </div>
        </xf:if>
    </xf:if>

Any idea ?
Thanks.
 
Back
Top Bottom