News:

Wondering if this will always be free?  See why free is better.

Main Menu

Change Title of a Page in a unique way - SMF 1.0.5?

Started by navjotjsingh, November 12, 2005, 04:10:53 AM

Previous topic - Next topic

navjotjsingh

Currently the index.template.php has this written for showing title of the page:

<title>', $context['page_title'], '</title>';

When we are on main page it shows what we want like for example: 'ASET Forum - Index' but when we are in any other page it removes the name of the Forum and shows like 'Theme Administration'

I want it to show on other pages as 'ASET Forum - Theme Administration' like for index as it shows
'ASET Forum - Index' but then for Index it should not show 'ASET Forum - ASET Forum - Index'

Any method of doing this?
Hope you understood the question correctly.

By the Way I am using SMF 1.0.5

Thantos


<title>', $context['page_title'] != "$context[forum_name] - Index" ? "$context[forum_name] - " : '', $context['page_title'], '</title>';

navjotjsingh

Thanks a lot to you. It worked perfectly. Thanks a million again.

Advertisement: