Ok, I've finally got an afternoon to redo the webpages. People who edit the
pages read on....

The website is now split up into sections:
Translations
About
Download
Documentation
Development

you can add your own section if you want - but make sure it's really worth a new
section.

Every page has a .meta file now. So "filename.inc" contains HTML code and you 
need to write "filename.meta". If you don't, the page won't load. Meta files
are simple text files with 4 lines:
Title
Author
Section
Ref

The first 3 should be easy. The Ref is the name of the .inc file (without .inc
at the end) or it starts with a ! in which case it's a full URL.

As an exmaple, here is protocol.meta:
Freenet Protocol
Freenet Team
Development
protocol

On the menu bar there is a link to the SF Freenet page, this is where you would 
use the full URL (NOTE: There is no .inc file to go with this):
SourceForge Page
SourceForge
Development
!http://sourceforge.net/project/?group_id=978

There is a Python script (metaprocess.py) that reads a list of meta filenames
in on stdin and generates menu.html, the sitemap and section documents etc.
To invoke, go into the right directory and type:
ls -1 *.meta | python metaprocess.py
When things are setup this will happen via cron on the hour.

When writing .inc files, are are some PHP functions defined in index.php you
should use. The main (and only really) ones you need are do_title_start and
do_title_end.

To surround a block of text with one of the black boxes do:
<? do_title_start ("Header Here"); ?>
html code here, html code here
<? do_title_end (); ?>

You should use this as headers and remember the very outer boxed is generated
by index.php - you don't have to do it.

I hope to have the pages up at http://whiterose.sourceforge.net/new sometime
soon for people to have a look at.

AGL

-- 
There is no grief which time does not lessen and soften.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20000804/6c00f57f/attachment.pgp>

Reply via email to