Hi,
It's me again
I'm trying to show the topic prefix in the page title module.
I don't know if I'm using the correct terminology so I'll explain my goal.
I use topic prefix, and I would like them to be shown on every page of the topic, currently vB 5 only show it in the first topic of the page.
After the first page, if the topic prefix contains an important info, user don't see it.
I think I've located the template in question, it should be the widget_pagetitle.
I've looked at how the template display_contenttype_threadview_header is fetching the prefix info :
I think I only need the last if statement (but not sure).
I tried inserting it inside the widget_pagetitle, in that section :
Just after the
But it's not showing, I'm wondering if I've forgotten something to be able to load it here, if someone has some guidance for that, it would be greatly appreciated
Thanks a lot
Cheers
It's me again
I'm trying to show the topic prefix in the page title module.
I don't know if I'm using the correct terminology so I'll explain my goal.
I use topic prefix, and I would like them to be shown on every page of the topic, currently vB 5 only show it in the first topic of the page.
After the first page, if the topic prefix contains an important info, user don't see it.
I think I've located the template in question, it should be the widget_pagetitle.
I've looked at how the template display_contenttype_threadview_header is fetching the prefix info :
Code:
<h2 class="b-post__title js-post-title OLD__post-title"> <vb:if condition="$conversation['iconpath']"> <img src="{vb:var baseurl_core}/{vb:var conversation.iconpath}" width="16" height="16" alt="" /> </vb:if> <vb:if condition="$conversation['prefixid']"> {vb:set searchStr, '{"prefix":["'} {vb:strcat searchStr, {vb:var conversation.prefixid}, '"]}'} <a href="{vb:url 'search'}?searchJSON={vb:urlencode {vb:raw searchStr}}">{vb:raw conversation.prefix_rich}</a> </vb:if> {vb:raw conversation.title} </h2>
I tried inserting it inside the widget_pagetitle, in that section :
Code:
<vb:if condition="$page['channelid'] != $nodeid AND !empty($conversationStarter) AND isset($conversationStarter['htmltitle']) AND !empty($conversationStarter['htmltitle'])"> {vb:set pageTitle, {vb:raw conversationStarter.htmltitle}} <vb:elseif condition="$newContentPageTitle" /> {vb:set pageTitle, {vb:raw newContentPageTitle}} <vb:else /> {vb:set pageTitle, {vb:raw page.title}} </vb:if>
Code:
{vb:set pageTitle, {vb:raw conversationStarter.htmltitle}}
Thanks a lot
Cheers
Comment