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
Passing news title to page title
Re: Passing news title to page title
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: Passing news title to page title
Smarty is case sensitive, you assigned "$ArticleTitle" but you test for $articleTitle .
Re: Passing news title to page title
Goodness! Thanks guys! I had a lower case a. I should have known I was overlooking something ridiculously simple.
I'll try to post a more challenging question next time!
I'll try to post a more challenging question next time!
