(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=false|search=true
> }
> #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|full=false|search=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
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to