Passing news title to page title
Posted: Tue Feb 28, 2017 10:55 pm
I'm having some trouble pushing my News article title into my Page title so it shows up in the title bar.
In my news template at the top I have
{assign var='ArticleTitle' value=$entry->title|cms_escape:htmlall scope='global'}
and in the page template where the detail page loads I have in the head tag...
<title>{if isset($articleTitle)}{$articleTitle}{else}{title}{/if} | {sitename}</title>
But when I pull up the detail page, ArticleTitle is undefined. Can anyone tell me what I'm missing?
Thanks!
CMSMS 2.1.6
News 2.50.6
In my news template at the top I have
{assign var='ArticleTitle' value=$entry->title|cms_escape:htmlall scope='global'}
and in the page template where the detail page loads I have in the head tag...
<title>{if isset($articleTitle)}{$articleTitle}{else}{title}{/if} | {sitename}</title>
But when I pull up the detail page, ArticleTitle is undefined. Can anyone tell me what I'm missing?
Thanks!
CMSMS 2.1.6
News 2.50.6