Hi,
Is there a way to have the page title tag use the news item title tag? In my template, {title} shows "News" for every news item page.
thanks
[solved] News - all news items have same title tag
[solved] News - all news items have same title tag
Last edited by loosefast on Sun Feb 14, 2010 5:41 pm, edited 1 time in total.
Re: News - all news items have same title tag
Yes
Try to read this:
http://calguy1000.com/Blogs/4/60/the-we ... dness.html
the "Dynamic tags" are probably that you look for.....
Try to read this:
http://calguy1000.com/Blogs/4/60/the-we ... dness.html
the "Dynamic tags" are probably that you look for.....
ReneH 
A search will save you hours waiting for an answer!

A search will save you hours waiting for an answer!

Re: News - all news items have same title tag
Thanks for the reply.
I added this to my News detail template:
{assign var='pagetitle' value=$entry->title}
I edited the code in my template to this:
(The example code under "Dynamic tags" threw a smarty error until I changed the end tag to {/if}.)
{if isset($pagetitle)}
{$pagetitle} | {sitename}
{else}
{title} | {sitename}
{/if}
The error stopped, but News items still don't display the correct Title tag.
I added this to my News detail template:
{assign var='pagetitle' value=$entry->title}
I edited the code in my template to this:
(The example code under "Dynamic tags" threw a smarty error until I changed the end tag to {/if}.)
{if isset($pagetitle)}
{$pagetitle} | {sitename}
{else}
{title} | {sitename}
{/if}
The error stopped, but News items still don't display the correct Title tag.
Re: News - all news items have same title tag
In config.php
# setting this parameter to false.
$config['process_whole_template'] = false;
Now it works.
Thanks
# setting this parameter to false.
$config['process_whole_template'] = false;
Now it works.
Thanks