Advertisement:

Author Topic: Page Title  (Read 3369 times)

Offline edi67

  • SMF Hero
  • ******
  • Posts: 1,532
  • Gender: Male
  • Italian Supporter
    • CrazyZone
Page Title
« 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?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Offline metallica48423

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,842
  • Gender: Male
  • Professional Multislacker!
    • Zentendo
Re: Page Title
« Reply #1 on: July 19, 2008, 09:33:41 AM »
You have two <head> sections.  you should combine the two
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

Quote
Microsoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"

Useful Links:
Online Manual!
How to Help us Help you   
Search
Settings Repair Tool
     

Offline edi67

  • SMF Hero
  • ******
  • Posts: 1,532
  • Gender: Male
  • Italian Supporter
    • CrazyZone
Re: Page Title
« Reply #2 on: July 19, 2008, 10:32:34 AM »
You have two <head> sections.  you should combine the two

well done but nothing change :(
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Offline metallica48423

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,842
  • Gender: Male
  • Professional Multislacker!
    • Zentendo
Re: Page Title
« Reply #3 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? 
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

Quote
Microsoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"

Useful Links:
Online Manual!
How to Help us Help you   
Search
Settings Repair Tool
     

Offline edi67

  • SMF Hero
  • ******
  • Posts: 1,532
  • Gender: Male
  • Italian Supporter
    • CrazyZone
Re: Page Title
« Reply #4 on: July 21, 2008, 02:11:59 AM »
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.?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Offline Nathaniel

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,117
  • Gender: Male
    • Verbtest.com
Re: Page Title
« Reply #5 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.

Code: [Select]
<title>', $context['page_title'], '</title>
With something like this:
Code: [Select]
<title>My page:</title>
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Offline metallica48423

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,842
  • Gender: Male
  • Professional Multislacker!
    • Zentendo
Re: Page Title
« Reply #6 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
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

Quote
Microsoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"

Useful Links:
Online Manual!
How to Help us Help you   
Search
Settings Repair Tool
     

Offline edi67

  • SMF Hero
  • ******
  • Posts: 1,532
  • Gender: Male
  • Italian Supporter
    • CrazyZone
Re: Page Title
« Reply #7 on: July 21, 2008, 03:24:40 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
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Offline Rumbaar

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,805
  • Gender: Male
  • Inherent Omniscience
    • Rumbaar.net
Re: Page Title
« Reply #8 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?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]