Slight change to the way $site_title works

Chris Howells chris at chrishowells.co.uk
Sat Mar 1 18:21:05 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I would like to make a slight change the way that the $site_title variable 
works.

I would like to make it so that you $site_title always remains constant for a 
individual site (kde.org, usability.kde.org), but an additional variable 
called $page_title is introduced for each page.

The header.inc file would be modified to look something like this:

print "<title>$site_title - $page_title</title>\n";

print "<h1>$page_title</h1>\n";

e.g. each page would automatically get a <h1> with the correct value:

It would also ensure that all pages get a decent <title> so when looking 
through logs, all the pages don't have the same title.

If nobody objects, I will work on implementing this change shortly.

- -- 
Cheers, Chris Howells -- chris at chrishowells.co.uk, howells at kde.org
Web: http://chrishowells.co.uk, PGP ID: 33795A2C
KDE: http://www.koffice.org, http://printing.kde.org, http://usability.kde.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE+YPoXF8Iu1zN5WiwRAknPAJ0QXamowpVHJDIWO8gpBkofV5BXjQCfe5x6
VJTRhTiL2V6xPOTT1m4nWAo=
=WrJV
-----END PGP SIGNATURE-----




More information about the kde-www mailing list