Show last authors
1 {{box cssClass="floatinginfobox" title="**Contents**"}}
2 {{toc/}}
3 {{/box}}
4
5 A XWiki skin is used to customize the interface of a XWiki instance.
6 A skin is composed of:
7
8 * [[Velocity templates>>platform:DevGuide.Scripting#velocity]]
9 * [[CSS files (stylesheets)>>Documentation.DevGuide.Tutorials.Skins.CSS files]]
10 * [[Javascript files>>platform:DevGuide.JavaScriptAPI]]
11 * Images
12
13 All these components are stored on the server that hosts the XWiki instance, inside the ##webapps/xwiki/## folder. Each XWiki skin has its own directory.
14
15 = The default XWiki Skins =
16
17 An XWiki instance contains several skins by default, such as:
18
19 * The [[Flamingo Skin>>extensions:Extension.Flamingo Skin]]
20 * The [[Colibri skin (deprecated starting 6.2-m2)>>extensions:Extension.Colibri Skin]]
21 * The [[Toucan skin (deprecated and removed starting with 4.4-rc1)>>extensions:Extension.Toucan Skin]]
22
23 The [[full list of XWiki skins>>platform:Features.Skins]] that are included in your XWiki instance can be found on the server filesystem, inside the ##webapps/xwiki/skins## folder.
24
25 = The usage level for a XWiki Skin =
26
27 A Skin can be used at different levels:
28
29 * For the entire XWiki instance. If no skin is set at other levels, the pages will use the global instance skin.
30 * For a space inside the XWiki instance. It has a higher priority than the instance level skin.
31 * For a specific user. It has a higher priority than the space level skin. For more details check [[this tutorial>>Documentation.AdminGuide.Skins||anchor="HChangingtheSkinforauser"]].
32 * For other custom levels that can be created by modifying the Velocity templates inside the skin (for example, a skin can be set for a specific page, for a specific group of users and so on).
33
34 == Changing the Skin ==
35
36 {{warning}}
37 To change the Skin, the user must have administrating rights. In the case that you have these rights, make sure that you switch to the Advanced mode in your profile, to enable the advanced options on the top main menu.
38 {{/warning}}
39
40 === How to preview a Skin applied on a page ===
41
42 To check how a page looks when changing the skin, you can add a parameter named skin to the page URL. For example, to preview the wiki main page with colibri skin, use the following URL: http://localhost:8080/xwiki/bin/view/Main/WebHome/?skin=colibri. If you want to preview the page using a skin document named MySpace.MySkinDoc, use the following URL: http://localhost:8080/xwiki/bin/view/Main/WebHome/?skin=MySpace.MySkinDoc.
43
44 === Changing the Skin at instance level ===
45
46 Each XWiki instance contains a //skin document// that stores the skin for the instance. In order to find out which document is used to store the current skin, the user has to follow these steps:
47
48 * Hover over "Wiki" and click on "Administer Wiki"
49 * Click on the **Presentation** link(((
50 {{image reference="skin1.png"/}}
51 )))
52 * Click on the **Customize** button from the skin section(((
53 [[image:skin2.png||style="border:1px solid silver; width:650px"]]
54 )))
55 * Edit the page in Objects mode(((
56 [[image:skin3||style="border:1px solid silver; width:650px"]]
57 )))
58 * You have multiple text areas where you can override the default behavior of your skin. Make your desired modifications.
59 * Click on **Save and View**
60 * Your settings will be applied and the skin should change accordingly
61
62 === Changing the Skin at space level ===
63
64 A XWiki space can have its own skin. For example, if you want to set the your skin for the Main space you should follow these steps:
65
66 * Go to any page inside the Main space
67 * From the top Space menu, click "Administer Space" to open the administration interface for the Main space
68 * Click on the **Presentation** link(((
69 {{image reference="skin5.png"/}}
70 )))
71 * If you have defined another skin, you should fill in the directory name which contains the skin.(((
72 {{info}}
73 The names of the skins are case-sensitive.
74 {{/info}}
75 )))
76 * Click on **Save**
77 * If you open any page inside the Main space you will notice the layout difference
78
79 === Changing the Skin for a user ===
80
81 If you want to use your skin for a specific user follow these steps:
82
83 * Go to the user's profile page
84 * Edit the page in Objects mode
85 * Set the value of the "skin" property (under //Objects of type XWiki.XWikiUsers//) to you custom skin (you must use lowercase letters)(((
86 [[image:skin6.png||style="border:1px solid silver; width:650px"]]
87 )))
88 * Click on **Save and View**
89 * Now all the pages inside the wiki will use your new skin for that user
90
91 = More about XWiki Skins =
92
93 In order to find out more about the XWiki Skins, check the [[Skins Tutorial>>platform:DevGuide.Skins]] in the Developer Guide and the [[Skins Tutorial>>platform:Features.Skins]] in the User Guide.

Get Connected