Difference between revisions of "XmlWiki"

From Organic Design wiki
Line 1: Line 1:
'''The Proposed WikiCM Hack'''
+
'''The Proposed xmlWiki'''
  
WikiCM is a hack not done the proper way: it is a modification of the index.php page offering three new features which are all maintained from editing normal wiki articles.
+
xmlWiki is a hack not done the proper way: it is a modification of the index.php page offering new features which are all maintained from editing normal wiki articles.
  
 +
*All articles are 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.
 
*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.
 
*PHP Functions can be created and maintained by developers and can be dynamically applied to articles before rendering.
Line 18: Line 20:
 
'''Implimenting the Hack'''
 
'''Implimenting the Hack'''
  
  Line 222 of index.php is changed from  '''$wgOut->output();'''  to '''require('wikicm.php');'''
+
Use the xmlwiki.php script to enable or disable the xml parsing of MediaWiki content.
 
 
 
 
'''New Special-Purpose Articles'''
 
 
 
The WikiCM hack is a script called wikicm.php which is itself published from the following article:
 
 
 
*[[wikicm.php]]
 
 
 
The new functionality is achieved by including the following links in articles followed by a list of parameters and other links. Each of these is also an article covering the specifics of its parameters and use.
 
 
 
*[[User]]
 
*[[Group]]
 
*[[ReadAccess]]
 
*[[WriteAccess]]
 
*[[Include]]
 
*[[Transform]]
 
*[[Publish]]
 
 
 
The following output transform functions that have been added:
 
 
 
*[[IncludeAll]]
 
*[[OulineNumber]]
 

Revision as of 08:47, 24 May 2005

The Proposed xmlWiki

xmlWiki is a hack not done the proper way: it is a modification of the index.php page offering new features which are all maintained from editing normal wiki articles.

  • All articles are 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 hack requires four hooks into the current Wiki environment

  • articleRender (done)
  • articleRequest (done)
  • articleChange (done)
  • userName (done)


Implimenting the Hack

Use the xmlwiki.php script to enable or disable the xml parsing of MediaWiki content.