Welcome to Geeklog, Anonymous Monday, October 14 2024 @ 07:34 pm EDT

Geeklog Forums

Page title modification


tokyoahead

Anonymous
When viewing a story, the browser title of the page becomes the title of the story.
How is this possible in a plugin?
 Quote

Status: offline

drshakagee

Forum User
Full Member
Registered: 10/01/03
Posts: 231
Check here and look at the plugin_getheadercode_ function.
Yes I am mental.
 Quote

Status: offline

tomw

Forum User
Full Member
Registered: 08/12/02
Posts: 300
Just change the $_CONF['site_slogan'] variable.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
No, no, no Laughing

As of Geeklog 1.3.10, COM_siteHeader accepts the page title as the second parameter. For a plugin, that's certainly the cleanest solution.

In older versions, there's a "hack" that if you set $_CONF['pagetitle'], it will be used as the page title. That still works in 1.3.10, but new code should use the new functionality, please.

bye, Dirk
 Quote

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