XWiki Skins
Contents
XWiki Skins
What is a XWiki Skin used for?
A XWiki Skin is used to customize the interface of a XWiki Enterprise instance.
What are the components that define a XWiki Skin?
A XWiki Skin is composed of:
All these components are stored on the server that hosts the XWiki Enterprise instance, inside the webapps/xwiki folder.
How to change the Skin
A. The default XWiki Skins
A XWiki Enterprise instance contains by default a list of Skins like:
- the albatross Skin
- the toucan Skin
- the colibri Skin and
- other skins ( the full list of XWiki Skins that are included in your XWiki Enterprise instance can be found on the server filesystem, inside the webapps/xwiki/skins folder )
B. The usage level for a XWiki Skin
A Skin can be used at different levels:
- for the entire XWiki Enterprise instance ( if there is no Skin set other levels, the pages will use the global instance Skin )
- for a space inside the XWiki Enterprise instance ( it has a higher priority then the instance level Skin )
- for a specific user (it has a higher priority then the space level Skin) and
- for other custom levels that can be created by modifying the Velocity templates from inside the Skin ( for example, a Skin can be set for a specific page, for a specific group of users and so on )
C. Changing the Skin
1. How to preview a Skin applied on a page
To check how a page looks on changing the Skin, you can add a parameter named skin to the page URL. For example, to preview the wiki main page on using the toucan Skin, use the following URL: http://localhost:8080/xwiki/bin/view/Main/WebHome/?skin=toucan . If you want to preview the page on using a Skin document named MySpace.MySkinDoc, use the following URL: http://localhost:8080/xwiki/bin/view/Main/WebHome/?skin=MySpace.MySkinDoc .
2. Changing the Skin at instance level
Each XWiki Enterprise instance contains a document ( Skin Document ) that stores the Skin for the instance. To find out which document is used to store the current Skin, the user has to follow these steps:
|
To change the current Skin, follow these steps:
|
You can now open any page inside the wiki instance and you will notice the layout difference.
3. Changing the Skin at space level
A XWiki space can use it's own Skin. For example, if you want to set as Skin for the space Main as being the albatross Skin, follow these steps:
|
You can now open any page inside the Main space and you will notice the layout difference.
More about XWiki Skins
In order to find more about XWiki Skins, check the Skins Tutorial from inside the Developer Guide and the Skins Tutorial from inside the User Guide


