XF 2.1 Custom Title In 'thread_view' (Apart from the thread title)

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.

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?
 
Is there a way to call $thread from PAGE_CONTAINER in order to get custom fields in the <title> or set the thread title from within thread_view template to be $thread.custom_fields.customHTMLTitle?

Thanks
 
Would I be able to accomplish this with the callback tag to fetch the thread helper within PAGE_CONTAINER if it's currently on the thread_view template?

I'm really stumped as to why I can't set a page title to a custom field within thread_view as well as able to modify it from PAGE_CONTAINER.
 
Top Bottom