Page 1 of 1

News title as page title

Posted: Sun Aug 25, 2013 11:51 am
by korisnik
I created new page and added title for that page. Within that page I'm writing news. But when I open news details it show me page title not news title.

how to make it to show news title, not page title all the time

Re: News title as page title

Posted: Sun Aug 25, 2013 12:44 pm
by velden
alter your page template:

Code: Select all

{title assign='title'}
<__html>
  <head><title>{$title}</title></head>
This code initially assigns value of {title} to variabele $title. It needs to be placed above the <__html> opening tag.

then inside your News detail template:

Code: Select all

{assign var='title' value=$entry->title}
Or something like that. This code assigns a new value to $title.

Re: News title as page title

Posted: Sun Aug 25, 2013 4:07 pm
by Dr.CSS
Look at calguy1000s 4th tip or so down...

http://forum.cmsmadesimple.org/viewtopi ... =4&t=11689

Re: News title as page title

Posted: Thu Aug 29, 2013 2:31 pm
by korisnik
thank you It helped me :D