Hi all,
I'm currently working on a customization of XWiki. So I did create a new
skin, defined my 'view.vm' and a couple of other files including my own CSS.
When I test the skin, my '.vm' and other files are OK except my CSS
files... In fact, except the files included by a $xwiki.getSkinFile("...").
I searched in the source code (com.xpn.xwiki.XWiki) and found that the
method 'resourceExists(String)' returns false if the path is not
prefixedwith a '/'. Anyway, the method 'getSkinFile(String, String,
XWikiContext)' creates a String as
String path = "skins/" + skin + "/" + filename;
In my case, the file "skins/lego/style.css" cannot be found unless I add
a '/' before "skins".
So I may be mistaking but as the rest of the pathes are prefixed by a
'/', I think a developper should have a look to this case.
Thanks and regards,
--
Arnaud Thimel
Société Code Lutin -
http://www.codelutin.com