On Mon, Feb 29, 2016 at 2:53 PM, Mark Sack <[email protected]> wrote:
In 7.4.1 (standalone installation) I'm trying to create a new skin using A. and C. in http://platform.xwiki.org/xwiki/bin/view/DevGuide/Skins. I've a couple of different variations but can't figure out what I'm doing wrong.
The steps I followed are:
1. Login as Admin - URL is http://localhost:8080/xwiki/bin/view/Main/ 2. Edit URL and go to http://localhost:8080/xwiki/bin/view/Main/MySkinPage/ 3. I see that the page does not exist and follow the 'edit this page' to create it. 4. Press the Create button and then Save & View. 5. Open the Objects editor and select the XWiki.XWikiSkins class - press Add 6. In the object properties, set the Name to 'My New Skin' 7. Set the base skin to 'flamingo' - Press Save & View. 8. Select the Test this skin link and everything looks fine. 9. Go to Administer Wiki -> Presentation.
10. Set both the Stylesheet and Stylesheets fields to Main.MySkinPage
I don't know much about these 2 fields but I think you should leave them set to "style.css" (which comes from the base skin, i.e. flamingo).
11. Set the Skin field to 'My New Skin' and press Save.
The value of the Skin field needs to be the reference of the skin page. In your case the skin page is a nested page (most probably, since you are on 7.4.1) so the reference is probably Main.MySkinPage.WebHome .
12. This results in a Java error ... Caused by: java.net.URISyntaxException: Illegal character in path at index 9: /skins/My New Skin/admin.vm
Spaces are allowed in page names and so they are allowed in skin names, when the skin is defined in a wiki page. The problem here is, I think, that XWiki could not found the page "Main.My Skin Page" (should have been Main.My Skin Page.WebHome instead) and thus it tried to look for a *file system* skin "My New Skin", which apparently can't have a space in its name (but it's more likely a bug that the file system skin name is not URL encoded when the URL is computed). In any case, try with the ".WebHome" suffix. Hope this helps, Marius
...
I thought maybe the error was that spaces were not allowed. So I created a new instance and followed the same steps but in steps 6 and 11 used 'MyNewSkin'. Then the browser showed the following: Error You are not allowed to view this page or perform this action. The URL was
http://localhost:8080/xwiki/bin/admin/XWiki/XWikiPreferences?editor=globalad...
I also thought that maybe in step 11 I need to use Main.MySkinPage instead. This resulted in the same error, i.e. Error You are not allowed to view this page or perform this action.
-- View this message in context: http://xwiki.475771.n2.nabble.com/Not-able-to-create-new-skin-tp7598159.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users