Page 1 of 1

Page Title How to change it

Posted: Fri Dec 10, 2004 5:59 am
by Guest
How can you change the page title tag so that you can make it what you want?

Posted: Fri Dec 10, 2004 7:00 am
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...

Page Title

Posted: Fri Dec 10, 2004 7:40 pm
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.

Re: Page Title

Posted: Sat Dec 11, 2004 5:32 pm
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.