Page Title How to change it

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Guest

Page Title How to change it

Post by Guest »

How can you change the page title tag so that you can make it what you want?
davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post by davecjr »

If you are talking about the main title page in version 7, it's in the admin panel, configuration, and perosnal settings. If I remember correctly...
BigQueer

Page Title

Post by BigQueer »

I mean so that you can customize the html tag <page title> so that instead of the page title that displays in the top of the browser (way at the top) can be customized.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Page Title

Post by garvinhicking »

There are two ways, depending on the Serendipity version you're using.

In 0.8 versions (development snapshots) we use smarty templating. There you can just edit the *.tpl files in templates/default directory and change any HTML code.

In 0.7.x versions, you can modify the templates/.../layout.php file, the directory depends no which template you're using ("default" if you haven't changed it, or no layout.php is in your template directory). In the layout.php you can enter some HTML code, but not of the title part.
To be able to enter HTML code of the title you can do this:

1. Enter s9y configuration and set 'embed' mode to true
2. Edit the layout.php file and insert all the HTML code you can find in the file 'serendipity_genpage.inc.php'. Because once you set 'embed' mode to true, you can controll ALL the HTML-Head stuff and serendipity doesn't do that anymore for you.

So you can see, using the latest version it's pretty easy, but using the 0.7 version you have to do some more file editing - but it's possible as well and not that hard if you get the clue of it :)

Regards,
Garvin.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply