How can I get headings on parent page (ie <h1>) to be set as news title?
Posted: Fri Aug 06, 2010 6:50 am
CMSMS 1.7.1
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:
In the head of my page template:
Further down in my template:
But whenever I do a capture the variable is empty. What am I doing wrong?
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>