TWiki home TWiki > TWiki > WebRssBase ( vs. r1.1) TWiki webs:
Main | TWiki | Plugins | Sandbox | Patterns
TWiki . { Home | Welcome | Register | Changes | Topics | Index | Search | Go }
 <<O>>  Difference Topic WebRssBase (r1.1 - 08 Apr 2004 - ArthurClemens)
Added:
>
>

%META:TOPICINFO{author="ArthurClemens" date="1081465020" format="1.0" version="1.1"}%

RSS Feed

This is the base for the RSS feed for each web.

Each web has a WebRss? that should contain the following text:


<channel rdf:about="%SCRIPTURL%/view%SCRIPTSUFFIX%/%INCLUDINGWEB%">
  <title>%WIKITOOLNAME%'s %INCLUDINGWEB% web</title>
  <link>%SCRIPTURL%/view%SCRIPTSUFFIX%/%INCLUDINGWEB%</link>
  <description>(the description of the web). TWiki is a Web-Based Collaboration Platform for the Corporate World.</description>
%INCLUDE{"%TWIKIWEB%.WebRssBase"}%

Below part is included by each WebRss topic:


%STARTINCLUDE%  <image rdf:resource="%PUBURL%/twikilogo88x31.gif" />
  <dc:language>en-us</dc:language>
  <dc:rights>Copyright %GMTIME{"$year"}%, Peter Thoeny and contributing authors.</dc:rights>
  <dc:publisher>Peter Thoeny [Peter@Thoeny.com]</dc:publisher>
  <dc:creator>Peter Thoeny [Peter@Thoeny.com]</dc:creator>
  <dc:source>TWiki</dc:source>
  <wiki:interwiki>
    <rdf:Description link="%SCRIPTURL%/view%SCRIPTSUFFIX%/%INCLUDINGWEB%/">
      <rdf:value>TWiki.%INCLUDINGWEB%</rdf:value>
    </rdf:Description>
  </wiki:interwiki>
  <items>
    <rdf:Seq>
%SEARCH{".*" web="%INCLUDINGWEB%" regex="on" nosearch="on" order="modified" reverse="on" nototal="on" limit="16" format="      <rdf:li rdf:resource=\"%SCRIPTURL%/view%SCRIPTSUFFIX%/$web/$topic\" />"}%
    </rdf:Seq>
  </items>
</channel>
<image rdf:about="%PUBURL%/twikilogo88x31.gif">
  <title>TWiki.%INCLUDINGWEB%</title>
  <link>%SCRIPTURL%/view%SCRIPTSUFFIX%/%INCLUDINGWEB%</link>
  <url>%PUBURL%/%TWIKIWEB%/TWikiLogos/twikilogo88x31.gif</url>
</image>
%SEARCH{".*" web="%INCLUDINGWEB%" regex="on" nosearch="on" order="modified" reverse="on" nototal="on" limit="16" format="<item rdf:about=\"%SCRIPTURL%/view%SCRIPTSUFFIX%/$web/$topic\">$n  <title>$topic</title>$n  <link>%SCRIPTURL%/view%SCRIPTSUFFIX%/$web/$topic?t=$isodate</link>$n  <description>Last changed by $wikiname.$summary</description>$n  <dc:date>$isodate</dc:date>$n  <dc:contributor>$n    <rdf:Description link=\"%SCRIPTURL%/view%SCRIPTSUFFIX%?topic=$wikiusername\">$n      <rdf:value>$username</rdf:value>$n    </rdf:Description>$n  </dc:contributor>$n  <wiki:version>$rev</wiki:version>$n  <wiki:status>updated</wiki:status>$n  <wiki:importance>major</wiki:importance>$n  <wiki:diff>%SCRIPTURL%/rdiff%SCRIPTSUFFIX%/$web/$topic</wiki:diff>$n  <wiki:history>%SCRIPTURL%/rdiff%SCRIPTSUFFIX%/$web/$topic</wiki:history>$n</item>"}%
%STOPINCLUDE%

See also: TWiki:Codev/RichSiteSummary, TWiki:Codev/TWikiSyndication

-- PeterThoeny - 30 Jan 2003

See TWiki:Codev/TWikiSyndication for the URLs to use when accessing TWiki RSS feeds, and templates/view.rss.tmpl in BeijingRelease? for the skin to be used. This is also available in CVS, see CVSget:templates/view.rss.tmpl (save this file and view in a text editor, as browsers may be upset by its use of near-XML).

See also:

-- PeterThoeny - 09 Dec 2001


Topic WebRssBase . { View | Diffs | r1.1 | More }
Revision -
Revision r1.1 - 08 Apr 2004 - 22:57 GMT - ArthurClemens
Copyright © 2003 by the contributing authors. All material on this collaboration tool is the property of the contributing authors. Ideas, requests, problems regarding TWiki? Send feedback