Status: offline

ArchyAA

Forum User
Junior
Registered: 12/19/07
Posts: 28
How to add {page_title} to footer.thtml ?
It's great for SEO, but how..Question

Status: offline

ArchyAA

Forum User
Junior
Registered: 12/19/07
Posts: 28
Dear friends, pls help me with it.
It's really big problem... Frown Frown Frown

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Sorry, that's not supported right now and not so easy to hack on.

Why do you think it would help with SEO? A page title belongs into the page's title (hence the name) and there it's most effective for SEO.

bye, Dirk

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1475
Actually I had a case where I needed the page title in another template which is a similar problem.

For Geeklog 2.0.0 it wouldn't be a real problem if you was using a 2.0.0 theme since the page is generated by one function now (COM_createHTMLDocument).

For Geeklog 1.8.X you could create a really ugly hack. In COM_SiteHeader when the page title is created you can pass it to a global variable.

Then in COM_SiteFooter you can then write your global variable that contains the page title to the template variable.
One of the Geeklog Core Developers.

Status: offline

ArchyAA

Forum User
Junior
Registered: 12/19/07
Posts: 28
Quote by: Dirk

Why do you think it would help with SEO? A page title belongs into the page's title (hence the name) and there it's most effective for SEO.
bye, Dirk

It's bcs I'm working with SEO (only) about 7 years Wink
Trust me.

Why so hard? Just need a hack for lib-custom, I think, but I don't know WHERE...

Status: offline

ArchyAA

Forum User
Junior
Registered: 12/19/07
Posts: 28
Quote by: Laugh

Actually I had a case where I needed the page title in another template which is a similar problem.

For Geeklog 2.0.0 it wouldn't be a real problem if you was using a 2.0.0 theme since the page is generated by one function now (COM_createHTMLDocument).

For Geeklog 1.8.X you could create a really ugly hack. In COM_SiteHeader when the page title is created you can pass it to a global variable.

Then in COM_SiteFooter you can then write your global variable that contains the page title to the template variable.


Thank U, I'll try.
But it's no problem if I'll upgrade to 2.0, yea?

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1475
You would still have to hack 2.0 but it would only be a few lines.
One of the Geeklog Core Developers.