Revision [15396]

This is an old revision of TypedPages made by MasinAlDujaili on 2006-10-05 06:12:49.

 

Typed Pages

The basic idea is to have a selection box during page creation where the user decides how the page content should be interpreted. The page types are simply templates how data has to be entered respectively displayed. This way you could make use of WikkaWiki as a generic database interface (with limitations, of course) where you could store different but recurring data types. It might be useful for:

Even if a lot of the above might be accomplished using actions or just mere Wiki syntax, it might not be the most elegant way of doing this. Basically, the data of the page content is used to fill fields in the page type template. The template might be in Wiki syntax, making it easy to maintain as a wiki page, or a raw HTML file. In both cases there's need for facilities to enter only once the template commands for recurring data.

Data fields

In the template data fields could be adressed using the ::(identifier) markup (alt. ::(%identifier%)). In the wiki page content the data is stored as
::(first name)Masin::
::(last name)Al-Dujaili::
::(gender)m::
::(birth date)1977-02-17::


Forum data fields

A forum might be realized using a template with these data fields:
::(%inreplyto%)::
::(%title%)::
::(%author%)::
::(%timestamp%)::
::(%content%)::
::(%followup%)::

These data fields could even be defined more precisely:
::(%inreplyto%)%parent_read_only%::
::(%title%)re: %parent%::
::(%author%)%current_user%::
::(%timestamp%)%automatic%::
::(%content%)%parent%::
::(%followup%)%children%::

Of course the key words or macros would have to be defined somewhere. And it could be done more elegant or more simple. Maybe someone wants to share her ideas concerning this.

to be continued
There are 5 comments on this page. [Show comments]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki