frm
Well-known member
Nothing I do works. I've tried just about everything. The variable exists and has a value, but, it always reverts to the "original" thread title in the title tag.
What am I doing wrong here?
Code:
<xf:comment>Testing whether there is a variable there, what it equals and even modifying the if conditional to equal that string</xf:comment>
<xf:if is="$xf.visitor.is_admin">
{$thread.custom_fields.threadHTMLTitle}
</xf:if>
<xf:if is="{$thread.custom_fields.threadHTMLTitle}">
<xf:title page="{$page}">{$thread.custom_fields.threadHTMLTitle}</xf:title>
<xf:else />
<xf:title page="{$page}">{{ prefix('thread', $thread, 'escaped') }}{$thread.title}</xf:title>
</xf:if>
What am I doing wrong here?