XF 2.0 XF2 Change Home Page <title> only?

Bimble

Active member
Licensed customer
In XF1 we used some code we found here on XF in the template PAGE_CONTAINER:
Code:
<xen:if is="{$contentTemplate} == 'forum_list'">
    <title>CUSTOM TITLE HERE</title>
<xen:else />
    <title><xen:if is="{$title}">{xen:raw $title} | {$xenOptions.boardTitle}<xen:else />{$xenOptions.boardTitle}</xen:if></title>
</xen:if>

How would we do this in XF2 please?
 
Code:
<xf:if is="$template == 'forum_list'">
        <title>CUSTOM TITLE</title>
    <xf:else />
        <title><xf:title formatter="%s | %s" fallback="{$xf.options.boardTitle}" page="{$pageNumber}" /></title>
    </xf:if>
 
Back
Top Bottom