Welcome to Geeklog, Anonymous Friday, November 22 2024 @ 11:35 pm EST

Geeklog Forums

How to add (page_title) to footer?


Status: offline

ArchyAA

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

Status: offline

ArchyAA

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

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
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.
 Quote

Status: offline

ArchyAA

Forum User
Junior
Registered: 12/19/07
Posts: 28
Location:Kiev, Ukraine
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...
 Quote

Status: offline

ArchyAA

Forum User
Junior
Registered: 12/19/07
Posts: 28
Location:Kiev, Ukraine
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?
 Quote

Status: offline

Laugh

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

All times are EST. The time is now 11:35 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content