XF 2.2 Custom title on specific page and forum list

Hambalie

New member
i like to change page title on specific pages

i use node as home pages and i like to change custom title.. when i set on node setting it show like this..

Untitled.png
i like to put some custom title..

on forum list also i need to change.

i don't want it show "forum list | hpg technologi"

i want to something different title..
 
Solution
Edit the PAGE_CONTAINER template.

Change this:
HTML:
<title><xf:title formatter="%s | %s" fallback="{$xf.options.boardTitle}" page="{$pageNumber}" /></title>

To This:
HTML:
<xf:if is="$xf.reply.template == 'forum_list'">
    <title>Forum List Custom Title</title>
<xf:elseif is="$xf.reply.containerKey == 'node-12'" />
    <title>Page Custom Title</title>
<xf:else />
    <title><xf:title formatter="%s | %s" fallback="{$xf.options.boardTitle}" page="{$pageNumber}" /></title>
</xf:if>

Change Forum List Custom Title to your desired title.
Change the node-12 to the ID of your page node.
Change Page Custom Title to your desired title.

Brogan

XenForo moderator
Staff member
Edit the PAGE_CONTAINER template.

Change this:
HTML:
<title><xf:title formatter="%s | %s" fallback="{$xf.options.boardTitle}" page="{$pageNumber}" /></title>

To This:
HTML:
<xf:if is="$xf.reply.template == 'forum_list'">
    <title>Forum List Custom Title</title>
<xf:elseif is="$xf.reply.containerKey == 'node-12'" />
    <title>Page Custom Title</title>
<xf:else />
    <title><xf:title formatter="%s | %s" fallback="{$xf.options.boardTitle}" page="{$pageNumber}" /></title>
</xf:if>

Change Forum List Custom Title to your desired title.
Change the node-12 to the ID of your page node.
Change Page Custom Title to your desired title.
 
Solution

Hambalie

New member
Edit the PAGE_CONTAINER template.

Change this:
HTML:
<title><xf:title formatter="%s | %s" fallback="{$xf.options.boardTitle}" page="{$pageNumber}" /></title>

To This:
HTML:
<xf:if is="$xf.reply.template == 'forum_list'">
    <title>Forum List Custom Title</title>
<xf:elseif is="$xf.reply.containerKey == 'node-12'" />
    <title>Page Custom Title</title>
<xf:else />
    <title><xf:title formatter="%s | %s" fallback="{$xf.options.boardTitle}" page="{$pageNumber}" /></title>
</xf:if>

Change Forum List Custom Title to your desired title.
Change the node-12 to the ID of your page node.
Change Page Custom Title to your desired title.
it work thanks man..
 
Top