News module 2.10.5
Hi, I've been trying to get the page tiltle AND a {title} block change to the title of the news article when the news detail is displayed. I've got the page title changing no probs using this technique:
http://forum.cmsmadesimple.org/index.ph ... 75.45.html
I've tried setting it in a capture like this...
In my news detail:
Code: Select all
{assign var='news_title' value=$entry->title}
Code: Select all
{if isset($news_title)}
{capture assign='page_title'}{$news_title}{/capture}
{else}
{capture assign='page_title'}{title}{/capture}
{/if}
Code: Select all
<h1>page_title</h1>