kde-www module

Christoph Cullmann cullmann at babylon2k.de
Wed Oct 16 22:21:41 UTC 2002


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

Hi,
my relative menu stuff should now work quiet fine, it uses $PHP_SELF to figure 
out the abolute url to the files in corresponding to the current menu_level, 
which means that:
1) the url's won'T contain the hostname, only a url like 
"/jskldfj/klsdjfkl.php"
2) you can put the different pages on different servers quiet fine, as the 
absolute urls are made up by the php while running, not hardcoded, that means 
mapping www/apps/kate to kate.kde.org won't break the menu.

Here again example page:

<?php

$site_title = "Kate Homepage";
$site_root = "../";
require_once("inc/functions.inc");

page_header("Home");

?>

<h2>Buhh, docu</h2>


<?

page_footer();


?>


This page has $site_root set to "../", which means that the pages root is one 
dir up from here, menu build will need at least a ../menu.inc accessible.

$site_title allow's you to set the page title

What we need more:
$site_logo to set logo, some other adjustments, fix the menu.inc & 
functions.inc to work more better with the relative links as atm, as said in 
previous mail, ../../../ is just dumb parsed.

cu
Christoph

- -- 
Christoph Cullmann
Kate/KDE developer
cullmann at kde.org
http://kate.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE9reZ3yPjDGePm9UIRAv2JAJ92jwyXRG5IUUqsVR8DR+krzFb0vQCgr74N
ozfCbB7Sckm3Zbc5Caw9W4k=
=Xqwg
-----END PGP SIGNATURE-----




More information about the kde-www mailing list