Hi Gerritjan,
The best way to update your skin is to edit DefaultSkin because you need
not have server access and you can change the look and feel for your XWiki
instance for: one page, one user, one space or the entire wiki.
You should use the object editor for DefaultSkin and just follow the steps:
-copy/paste the content of Style.css from the filesystem to style.css
field (this in fact overrides Style.css from the filesystem so that your
wiki will use the content of style.css)
-add a new property named toucan.css to XWiki.XWikiSkins class
-copy/paste the new content of toucan code in toucan.css
You need not modify your custom stylesheets.vm from the filesystem,
because the skin will use that version. Although, the best practice for
stylesheets.vm is the same as for toucan(add a property named
stylesheets.vm in the skin and override the property content).
Best regards,
Oana
Hi Stepane,
Although the concept of placing the Toucan.css in the Skin of the Wiki
instead of the filesystem makes sense
I'm not sure if this works for us...
Our skin is DefaultSkin
In this I have the field Style.css. I could put the file style.css
into this field (copy the code)
In this stylesheet there is:
@import "microformats.css";
@import "fullscreenEdit.css";
@import "css/table/table.css";
@import "usersandgroups.css";
@import "suggest/ajaxSuggest.css";
@import "rss.css";
@import "toucan.css";
Now we have updated the toucan.css
If I put toucan.css as a attachment to DefaultSkin i'm not sure if it
works
Because we also have a script in the skin stylesheets.vm
that will replace style.css under certain conditions;
#if($cntryCd)
#set($defaultstyle = $cntryCd+$styleExtn)
#set($completeURL = $request.getRequestURL())
##* $completeURL
#if($completeURL.indexOf("/view") > 0)
##* Am I here
#set($viewIndex = $completeURL.indexOf("/view"))
#set($firstPartURL = $completeURL.substring(0, $viewIndex))
#set($newURL = $firstPartURL + '/skin/skins/cdlsskin/'+$defaultstyle)
#set($urlCont = $xwiki.getURLContent($newURL, 1500))
#if($urlCont.contains("@import"))
#else
#set ( $defaultstyle = "style.css" )
#end
#else
#set ( $defaultstyle = "style.css" )
#end
#end
The stylesheets that would be called by this script are all on the
filesystem;
They all have a call to toucan.css (see below for one example)
@import "microformats.css";
@import "fullscreenEdit.css";
@import "css/table/table.css";
@import "usersandgroups.css";
@import "suggest/ajaxSuggest.css";
@import "rss.css";
@import "toucan.css";
@import "css/colors/blue.css";
If you think it can still work putting the toucan in the wikipage; as
a attachment or into a new attributue toucan.css which I should add to
the standard class xwiki.xwikiskins?
Hope you can help. (i will also post this conversation on users)
Gerritjan
On 4 jun 2009, at 17:40, stephane barbey wrote:
Hi Gerritjan,
There's a way to set your new css file without access on the server.
1/ Go on your skin page, edit that page in object mode, open the
Default XWiki Skin property and chose in which field you want to
overwrite your new css.
2/ Back up the current toucan.css : I don't personnally have access
to the server. Nevertheless, there's a way to read the content of
the toucan.css files typing that url :
http://cdlsworld2.xwiki.com/xwiki/skins/toucan/toucan.css
. Then you can copy/paste the content of that file.
Best regards
Gerritjan Koekkoek a écrit :
>
> Hi Stephane,
>
> I've received an update of toucan.css,
> Could i request you one more time to place this file in our webapps/
> xwiki/skins/cdlsskin.
> Could you make a backup of the current toucan.css before doing this?
>
> I have a question about placing this file into the wiki?
> As I understand in the tutorial i can create a new skin in the wiki.
> Could I add a new property to the Skin, by editing the
> XWiki.XWikiSkins class?
> name toucan.css, type TextArea?
>
> Or will this only work for vm template's
>
> Gerritjan Koekkoek
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users