Display the site name in title

Many users joomla 1.5 frustrating that in the title - the header of the site in the browser displays only the title page without the name of the site, as it was in joomla 1.0. And it is simply treated

Open the file index.php template (eg / templates / mytemplate / index.php /), and paste the following code after the tag:

 $ Document = & JFactory:: getDocument (); 
$ Config = & JFactory:: getConfig ();
$ Fulltitle = $ document-> title. ' - '. $ Config-> getValue (' sitename ');
$ Document-> setTitle ($ fulltitle);
After this operation on all pages except the main one, the title will look like "Article Title - The title of the site.
vis_1

Contact

518 4067
220 5532

icq 255018290

info@redsoft.ru

 

 

Redsoft-участник top25 рейтинга рунета

Redsoft - участник Top25
рейтинга студий России