source: main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/universityrss20feed.pt @ 7443

Last change on this file since 7443 was 4989, checked in by uli, 15 years ago

Add template for RSS feeds.

File size: 1.8 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<rss version="2.0"
3     xmlns:tal="http://xml.zope.org/namespaces/tal"
4     xmlns:atom="http://www.w3.org/2005/Atom">
5  <channel>
6    <title>
7      <tal:block tal:content="view/title"/>
8      <tal:block
9          tal:define="title view/contexttitle"
10          tal:condition="title"> - <tal:block content="title"/>
11      </tal:block>
12    </title>
13    <link
14        tal:content="view/link"></link>
15    <description
16        tal:content="view/description"></description>
17    <language
18        tal:condition="view/language"
19        tal:content="view/language"></language>
20    <pubDate
21        tal:condition="view/date"
22        tal:content="view/date"></pubDate>
23    <lastBuildDate
24        tal:condition="view/buildDate"
25        tal:content="view/buildDate"></lastBuildDate>
26    <managingEditor
27        tal:condition="view/editor"
28        tal:content="view/editor"></managingEditor>
29    <webMaster
30        tal:condition="view/webmaster"
31        tal:content="view/webmaster"></webMaster>
32    <atom:link
33        tal:attributes="href string:${view/link}@@feeds/${view/name}"
34        rel="self" type="application/rss+xml" />
35    <item
36        tal:repeat="item view/entries">
37      <title
38          tal:content="item/title"></title>
39      <description
40          tal:content="item/description"></description>
41      <guid
42          tal:content="item/guid"
43          tal:define="isPermaLink item/isPermaLink|nothing"
44          tal:attributes="isPermaLink python:isPermaLink and 'true' or 'false'"></guid>
45      <link
46          tal:condition="item/link|nothing"
47          tal:content="item/link"></link>
48      <author
49          tal:condition="item/author|nothing"
50          tal:content="item/author"></author>
51      <category
52          tal:condition="item/category|nothing"
53          tal:content="item/category"></category>
54      <pubDate
55          tal:condition="item/pubDate|nothing"
56          tal:content="item/pubDate"></pubDate>
57    </item>
58  </channel>
59</rss>
Note: See TracBrowser for help on using the repository browser.