Page 1 of 1

[solved] News - all news items have same title tag

Posted: Sun Feb 14, 2010 1:44 pm
by loosefast
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

Re: News - all news items have same title tag

Posted: Sun Feb 14, 2010 2:31 pm
by reneh
Yes


Try to read this:
http://calguy1000.com/Blogs/4/60/the-we ... dness.html
the "Dynamic tags" are probably that you look for.....

Re: News - all news items have same title tag

Posted: Sun Feb 14, 2010 3:15 pm
by loosefast
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.

Re: News - all news items have same title tag

Posted: Sun Feb 14, 2010 3:46 pm
by loosefast
In config.php

# setting this parameter to false.
$config['process_whole_template'] = false;

Now it works.

Thanks