On Thu, Aug 14, 2008 at 5:47 PM, Marta Girdea <[EMAIL PROTECTED]>wrote:

>
>
> On Thu, Aug 14, 2008 at 5:29 PM, Markus Lanthaler <[EMAIL PROTECTED]>wrote:
>
>> OK thanks, so I think it's useless for me at the moment because I need to
>> reference also a picture.
>
>
> Not quite.You can reference the picture from the StyleSheetExtension simply
> by writing, for example,
> background-image: url($xwiki.getSkinFile("picture.png"))
>
> You also must mark the fact that the code needs to be parsed (the "Parse
> content" property in the StyleSheetExtension object).
>

Or, if you prefer, you can  attach the picture to the StyleSheetExtension's
wiki page, and use it like this:
background-image: url($doc.getAttachmentURL("picture.png"))
or
background-image:
url($xwiki.getDocument("XWiki.LoginStyle").getAttachmentURL("picture.png"))


>
>> I guess the best thing at the moment is to include
>> the CSS and image in the skin and refactor it later. What do you think?
>>
>>
>> ----- Original Message -----
>> From: "Marta Girdea" <[EMAIL PROTECTED]>
>> To: "XWiki Developers" <[email protected]>
>> Sent: Thursday, August 14, 2008 5:07 PM
>> Subject: [gsoc] Re: [xwiki-devs] Stylesheet for just some pages
>>
>>
>> > On Thu, Aug 14, 2008 at 5:01 PM, Marta Girdea
>> > <[EMAIL PROTECTED]>wrote:
>> >
>> >> Hi Markus,
>> >> You could use Skin Extensions:
>> >> http://dev.xwiki.org/xwiki/bin/view/Design/SkinExtensions,
>> >> http://code.xwiki.org/xwiki/bin/view/Plugins/SkinExtensionsPlugin
>> >>
>> >> There's no documentation there yet (we'll have to fix that) so here's
>> >> what
>> >> you have to do:
>> >> - Create a wiki page XWiki.LoginStyle containing an xwiki object from
>> the
>> >> XWiki.StylesheetExtention class.
>> >> - write your css styling in the code property of that object;
>> >> - include this style in the login and registration pages or templates
>> >> with
>> >> this line:
>> >> $xwiki.ssx.use("XWiki.LoginStyle")
>> >>
>> >> Note that, at the moment, it only works for including styles from wiki
>> >> documents, you use stylesheets located on the disk.
>> >>
>> >
>> > I obviously meant:
>> > Note that, at the moment, it only works for including styles from wiki
>> > documents, you _can't_ use stylesheets located on the disk this way.
>> >
>> >>
>> >>
>> >>
>> >> On Thu, Aug 14, 2008 at 4:27 PM, Markus Lanthaler
>> >> <[EMAIL PROTECTED]>wrote:
>> >>
>> >>> Hi,
>> >>>
>> >>> I'm currently adding some stylesheets to Albatross to style the new
>> >>> OpenID
>> >>> login and registration form
>> >>> (http://jira.xwiki.org/jira/browse/XSALBATROSS-34). Since those
>> OpenID
>> >>> styles are used only there I wanted to ask how it is possible to
>> include
>> >>> the
>> >>> stylesheet just on the login and registration page!? Is there some
>> >>> special
>> >>> mechanisms?
>> >>>
>> >>> Thanks,
>> >>> Markus
>> >>>
>> >>> _______________________________________________
>> >>> devs mailing list
>> >>> [email protected]
>> >>> http://lists.xwiki.org/mailman/listinfo/devs
>> >>>
>> >>
>> >>
>> > _______________________________________________
>> > devs mailing list
>> > [email protected]
>> > http://lists.xwiki.org/mailman/listinfo/devs
>>
>> _______________________________________________
>> devs mailing list
>> [email protected]
>> http://lists.xwiki.org/mailman/listinfo/devs
>>
>
>
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to