%META:TOPICPARENT{name="ODSWiki"}%
%VOSNAV%
---++ ODS Wiki Templates Engine
You can add a new template from the ODS Wiki UI -> Cluster Settings
   * Skins are customized oWiki Templates files. 
   * Skins overlay regular templates with alternate header/footer layout of pages
   * Skins are typically enabled site-wide or per web.
---+++ Adding a new skin
To add a new skin, execute the following steps:
   1. The location of skins live is in:
   /DAV/VAD/wiki/Root/Skins/
   1. For every *skin* folder there are the following files:
PostProcess.xslt 
default.css
   1. Create a new folder  in directory /DAV/VAD/wiki/Root/Skins/
   1. Copy PostProcess.xslt and default.css files to  folder from one of the already existing folders in directory /DAV/VAD/wiki/Root/Skins/
   1. Apply your changes in PostProcess.xslt and default.css files in  folder.
   1. Now go from your wiki page to 'Cluster Settings',  is already available.
   1. Remember to xslt_stale() the xslt after every further change. Look [[WikiSkinRefreshHowTo][here]] how to do it.
   1. In ODS Wiki Cluster Settings you can specify both primary and secondary  skins and a regexp to switch between them, look [[ODSWikiClusterSettings][here]] for an example. 
   * References:
      * [[WikiSkinRefreshHowTo][How to Refresh Wiki Skin]]
      * [[ODSWikiClusterSettings][Wiki Cluster Settings]]
CategoryODS CategoryOpenSource CategoryWiki CategoryHowTo
%VOSCOPY%