1 | <?xml version="1.0" encoding="utf-8"?> |
---|
2 | <rss version="2.0" |
---|
3 | xmlns:tal="http://xml.zope.org/namespaces/tal" |
---|
4 | xmlns:metal="http://xml.zope.org/namespaces/metal" |
---|
5 | xmlns:content="http://purl.org/rss/1.0/modules/content/" |
---|
6 | tal:define="results python:here.getSyndicatableContent();" |
---|
7 | tal:on-error="nothing"> |
---|
8 | <tal:x define="dummy python:request.RESPONSE.setHeader('Content-Type', 'text/xml')" /> |
---|
9 | <channel> |
---|
10 | |
---|
11 | <title tal:define="portal_title here/portal_properties/title; |
---|
12 | here_title here/title_or_id; |
---|
13 | template_title template/title_or_id; |
---|
14 | here_title python:test(portal_title != here_title, here_title, template_title)" |
---|
15 | tal:content="string:$portal_title - $here_title">Title of page</title> |
---|
16 | <link tal:content="here/absolute_url"></link> |
---|
17 | <description tal:content="here/Description"> |
---|
18 | </description> |
---|
19 | <language>en-us</language> |
---|
20 | <generator>Plone 2.0</generator> |
---|
21 | |
---|
22 | <tal:block repeat="res results"> |
---|
23 | <tal:block define="macros nocall: python:here.getItemMacros(res.portal_type); |
---|
24 | item_path python: res.absolute_url(); |
---|
25 | item_path python: res.portal_type=='ATAudio' and item_path+'/file_download/'+res.getId() or item_path;"> |
---|
26 | <item> |
---|
27 | <title tal:content="res/title_or_id"></title> |
---|
28 | <link tal:content="item_path"></link> |
---|
29 | <description tal:content="res/Description"> |
---|
30 | </description> |
---|
31 | <author tal:content="res/Creator"></author> |
---|
32 | <tal:repeat repeat="subj res/Subject"> |
---|
33 | <category tal:content="subj"> |
---|
34 | </category> |
---|
35 | </tal:repeat> |
---|
36 | <pubDate tal:content="structure python: DateTime(res.Date()).rfc822()"> </pubDate> |
---|
37 | <metal:block use-macro="macros"/> |
---|
38 | </item> |
---|
39 | |
---|
40 | </tal:block> |
---|
41 | |
---|
42 | </tal:block> |
---|
43 | |
---|
44 | |
---|
45 | </channel> |
---|
46 | |
---|
47 | </rss> |
---|
48 | |
---|