Difference between revisions of "22 May 2006"

From Organic Design wiki
(Info about new domain-properties.php transform)
 
m
 
Line 1: Line 1:
 
<table class=document-code><tr><td>
 
<table class=document-code><tr><td>
 +
;Virtual hosting with XmlWiki
 
I've made a good and simple way to host and manage the content of multiple web sites using a single [[XmlWiki]]. It uses the new [[domain-properties.php]] transform which has been added to the [[init]] [[event.2|event]] in [[default-properties.xml]]. This allows a properties article specific to the request-URL's domain to be merged with the default-properties. For example, the article [[zenovia.net.xml]] is a properties article which will globally apply to all article requests using the ''www.zenovia.net'' domain.
 
I've made a good and simple way to host and manage the content of multiple web sites using a single [[XmlWiki]]. It uses the new [[domain-properties.php]] transform which has been added to the [[init]] [[event.2|event]] in [[default-properties.xml]]. This allows a properties article specific to the request-URL's domain to be merged with the default-properties. For example, the article [[zenovia.net.xml]] is a properties article which will globally apply to all article requests using the ''www.zenovia.net'' domain.
  

Latest revision as of 22:05, 18 June 2006

Virtual hosting with XmlWiki

I've made a good and simple way to host and manage the content of multiple web sites using a single XmlWiki. It uses the new domain-properties.php transform which has been added to the init event in default-properties.xml. This allows a properties article specific to the request-URL's domain to be merged with the default-properties. For example, the article zenovia.net.xml is a properties article which will globally apply to all article requests using the www.zenovia.net domain.

This method makes it simple to have their own site-wide CSS's for design and wiki-tool hiding or to have their own customised tools etc. If these properties are designed to make the wiki invisible, then content can still be managed from the organicdesign.co.nz domain instead. It also means that virtual-hosts are unnecessary, all domains point to the same IP, and the web-server can be run simply on the single-site default configuration.

--Nad 13:17, 22 May 2006 (NZST)