I want to create RSS from the contents of a TWiki page and publish it like slashdot does.
I have read the 'web base rss' topic and seen the
WebRss generated. But
WebRss also includes some html which is not parsed by my xml parser (I am using
XML4J parser).
How do I get rid of the html generated by TWiki?
--
TWikiGuest- 26 Jul 2002
Hi - you need to use a URL like this:
http://twiki.org/cgi-bin/view/Main/WebRss?skin=rss&contenttype=text/xml
- the key is the
skin=rss part, which uses a minimal skin that doesn't include any
HTML. Once you've done this, it should all work OK.
See
RichSiteSummary for various explanatory stuff and links on RSS feeds, RSS readers, etc. Also,
RSSAutoDiscovery is well worth implementing for a public site - lets some RSS-capable tools find your RSS feed more easily.
--
RichardDonkin - 26 Jul 2002
Here are the exact steps that I followed:
- You require TWiki Dec 2001 release. This has FormattedSearch capability included - essential for this functionality.
- RSS skin template has to be added to 'templates' directory. (Available as attachment in WikiRssExtension; Click here
to download it.)
- Create a topic
WebRssBase in TWiki web. Copy the contents of WebRssBase. (Only the contents between STARTINCLUDE and STOPINCLUDE get included.) This topic has a SEARCH that identifies most recent 15 topics in the INCLUDEd web, and the names of these webs are output as RSS items.
- Create a topic
WebRss in the web (which has to be RSS-streamed). Follow the instructions in WebRssBase for the contents of this topic.
- If the web is 'Test', then the URL:
http://yourhost/twiki/bin/view/Test?skin=rss&contenttype=text/xml should be used for RSS stream.
-
VinodKulkarni - 01 Aug 2002
One other point is that you should edit
WebRss and
TWiki.WebRssBase to include the appropriate feed name, description and copyright details, some of which are specific to TWiki.org at the present. This is important if your feed gets syndicated e.g. via syndic8.com. In particular, it's best if the <title> element includes a unique name for your site, not just 'TWiki' - e.g. the feed at
http://donkin.org
reads 'Donkin.org'.
--
RichardDonkin - 01 Aug 2002