On Tue, Mar 17, 2009 at 10:49 AM, Remi <remi.pierrard(a)conseiltechno.com>wrote;wrote:
It's very very difficult to understand css and vm
architecture of toucan
skin from scratch..
I don't know if it's worth understanding from scratch.
What about "understanding" it from firebug, in firefox, on a working xwiki
page. This includes changing the stylesheet live to make it look like you
want it to. Once you've got some things working, figure out how to make your
settings work as !override forms in a standalone CSS file.
Then just go to Administrate Wiki->Presentation, andadd the following to
"HTTP Meta Information":
<link rel="stylesheet"
href="$xwiki.getURL("Macros.MyStyleOverride","view","xpage=plain")"
type="text/css" />
The above will override for the whole site. To be safe, I suggest trying out
stylesheet override changes on a specific space where you can do experiments
w/o messing up the site for everybody else. This is done by using
Administrate Space->Presentation->"HTTP Meta Information"
Once you've decided the location, create a stylesheet as a document called
for example, Macros.MyStyleOverride
$response.setContentType("text/css")
{pre}
/* place all overrides to default stylesheet here */
/* example: .rssfeed
{border:0px!important;padding:0px!important;width:100%!important;} */
{/pre}
(suggest starting out with an empty Macros.MyStyleOverride then adding new
styles individually, and shift-reloading to force all the stylesheets to
reload on each test).
Of course I haven't tried the above yet, other than for a different example
that uses the same technique/hack but locally rather than globally... but I
plan to do this some more soon.
.........................
Date: Mon, 16 Mar 2009 18:04:07 -0700
Subject: generalizing Radeox RSS:FEED macro in Xwiki
From: Niels Mayer <nielsmayer(a)gmail.com>
To: XWiki Users <users(a)xwiki.org>
(1) Create a stylesheet
http://nielsmayer.com/xwiki/bin/view/Macros/styledRSS?xpage=plain
Which is a document
http://nielsmayer.com/xwiki/bin/view/Macros/styledRSS?viewer=code with
following wikicode:
$response.setContentType("text/css")
{pre}
> .rssfeed
{border:0px!important;padding:0px!important;width:100%!important;}
> {/pre}
(2) Refer to that stylesheet wherever you want/need the RSS:FEED macro to
appear sized to the container displaying it, e.g. to make a "Panel" display
feed contents:
<link rel="stylesheet"
href="$xwiki.getURL("Macros.styledRSS","view","xpage=plain")"
type="text/css" />
#panelheader('Twitter Lyme')
{rss:feed=
http://search.twitter.com/search.atom?q=Lyme+Disease|count=5|img=false|full…
}
#panelfooter()
The results:
http://morgellonswiki.info/xwiki/bin/view/Panels/Twitter+Lyme
http://morgellonswiki.info/xwiki/bin/view/Panels/Twitter+Morgellons
http://morgellonswiki.info/xwiki/bin/view/Panels/Google+News+Lyme
http://morgellonswiki.info/xwiki/bin/view/Panels/Google+News+Morgellons
(3) You can change the way your feed presents in your XWiki user page, e.g.
http://nielsmayer.com/xwiki/bin/view/XWiki/NielsMayer
is done by placing the following in the "Description" field of the User
document:
<link rel="stylesheet"
href="$xwiki.getURL("Macros.styledRSS","view","xpage=plain")"
type="text/css" />
{rss:feed=
http://nielsmayer.com/roller/NielsMayer/feed/entries/rss|count=50|img=true|…
}
(4) Using the same stylesheet hack along with documented information on the
radeox RSS macro (
http://code.xwiki.org/xwiki/bin/view/Macros/RssMacro )
one can assemble numerous feeds in one page, fully expanded, with space for
images, etc:
http://morgellonswiki.info/xwiki/bin/view/Main/FeedsOfInterest
.....................................
Niels
http://nielsmayer.com