Welcome to Geeklog, Anonymous Tuesday, July 08 2025 @ 01:11 pm EDT

Geeklog Forums

How to add (page_title) to footer?


Status: offline
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
 Quote

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

Status: offline
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
 Quote

Status: offline
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.
 Quote

Status: offline
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...
 Quote

Status: offline
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?
 Quote

Status: offline
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.
 Quote

All times are EDT. The time is now 01:11 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