Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: edi67 on July 19, 2008, 08:07:39 AM

Title: Page Title
Post by: edi67 on July 19, 2008, 08:07:39 AM
I made new page in my forum for the Rules:

http://ediboard.altervista.org/index.php?action=regolamento

I trying  but im not able to insert the PAGE TITLE in this page , i see only the link of topic

some solution?
Title: Re: Page Title
Post by: metallica48423 on July 19, 2008, 09:33:41 AM
You have two <head> sections.  you should combine the two
Title: Re: Page Title
Post by: edi67 on July 19, 2008, 10:32:34 AM
Quote from: metallica48423 on July 19, 2008, 09:33:41 AM
You have two <head> sections.  you should combine the two

well done but nothing change :(
Title: Re: Page Title
Post by: metallica48423 on July 19, 2008, 08:20:58 PM
it works on the forums now.  the title of the main page is coming up blank

Are you setting $context['page_title'] for the main page? 
Title: Re: Page Title
Post by: edi67 on July 21, 2008, 02:11:59 AM
Quote from: metallica48423 on July 19, 2008, 08:20:58 PM
it works on the forums now.  the title of the main page is coming up blank

Are you setting $context['page_title'] for the main page? 

where i must settings this? in index.template.?
Title: Re: Page Title
Post by: Nathaniel on July 21, 2008, 02:14:48 AM
Yes, you need to edit the 'index.template.php' file.

If you are using the default template then it should be on line 79, you want to replace the code below, or code very similar to it.

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

With something like this:
<title>My page:</title>
Title: Re: Page Title
Post by: metallica48423 on July 21, 2008, 02:49:56 AM
i wouldn't suggest that.

it just seems like that page isn't setting $context['page_title'] -- you could define this in the Source file for that action and it should work
Title: Re: Page Title
Post by: edi67 on July 21, 2008, 03:24:40 AM
Quote from: metallica48423 on July 21, 2008, 02:49:56 AM
i wouldn't suggest that.

it just seems like that page isn't setting $context['page_title'] -- you could define this in the Source file for that action and it should work

i will try thx
Title: Re: Page Title
Post by: Rumbaar on July 26, 2008, 09:05:49 PM
Get an error when I test that link, so can't confirm.  But have you been able to define that variable in your source page or custom action area to populate it for the index.template.php use?