Difference between revisions of "XmlWiki"
From Organic Design wiki
Line 1: | Line 1: | ||
− | |||
− | |||
[[Image:xmlwiki_wht.jpg]] | [[Image:xmlwiki_wht.jpg]] | ||
'''Old logo:''' | '''Old logo:''' | ||
[[Image:xmlwiki_old.jpg]] | [[Image:xmlwiki_old.jpg]] | ||
− | + | ==A Wiki of Objects== | |
− | |||
xmlWiki is a modification of the index.php page offering new features which are all maintained from editing normal wiki articles. | xmlWiki is a modification of the index.php page offering new features which are all maintained from editing normal wiki articles. | ||
Line 15: | Line 12: | ||
− | + | ==The general model of the xmlWiki layer== | |
'''INIT''' (called after main-misc-setup) | '''INIT''' (called after main-misc-setup) | ||
Line 40: | Line 37: | ||
*enable patch | *enable patch | ||
*disable patch | *disable patch | ||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 22:56, 26 May 2005
File:Xmlwiki wht.jpg Old logo: File:Xmlwiki old.jpg
A Wiki of Objects
xmlWiki is a modification of the index.php page offering new features which are all maintained from editing normal wiki articles.
- All articles are objects stored in XML
- An additional xml page allows editing the data aspect of an article as a tree.
- A permissions structure offering basic read/write control over articles with users and groups.
- PHP Functions can be created and maintained by developers and can be dynamically applied to articles before rendering.
- Articles can made to automatically publish remotely over HTTP or FTP when edits are saved.
The general model of the xmlWiki layer
INIT (called after main-misc-setup)
- get wiki/request env
- get article
- permissions
INPUT (called before processing $action)
- if valid xml posted, update article-dom
- put into POST as text for MediaWiki
OUTPUT (called instead of $wgOut->output)
- trap MediaWiki output
- extract content and links
- add xml link (action=xwXML)
- render transformed article if view/preview
- render description-textarea if editing
- render xml-textarea(xw.xml) if $action=xwXML
- render wiki content if special
- publish transformed article if saving
FUNCTION (common functions)
- get article as dom
- extract hrefs from text
- message
ADMIN (executed when xmlwiki.php requested directly)
- enable patch
- disable patch