index.xml
RSS 2.0形式で更新情報を提供するためのPage Templateのソースファイルです。
サイズ 2.1 kB - File type text/xmlファイルのコンテンツ
<?xml version="1.0"?>
<rss version="2.0"
xmlns:tal="http://xml.zope.org/namespaces/tal">
<tal:dummy tal:define="dummy python:request.RESPONSE.setHeader('Content-Type', 'text/xml;; charset=utf-8')" />
<channel>
<title tal:content="context/title">Title of site</title>
<link tal:content="context/absolute_url">http://plone.org</link>
<description tal:content="context/Description">Description of site
</description>
<language tal:content="context/portal_properties/site_properties/default_language">en</language>
<image>
<url tal:content="string:${context/portal_url}/${context/base_properties/logoName}">
http://plone.org/logo.jpg
</url>
<title tal:content="context/title">Title of site</title>
<link tal:content="context/absolute_url">http://plone.org</link>
</image>
<tal:search tal:condition="python:context.portal_type == 'COREBlog2'">
<tal:dummy tal:define="global items python:context.getRecentEntry(limit=15)" />
</tal:search>
<tal:search tal:condition="python:context.portal_type != 'COREBlog2'">
<tal:dummy tal:define="global items python:context.portal_catalog.searchResults(
sort_on='modified',
sort_order='reverse',
review_state='published',
portal_type=['Folder','Document'])[:15]" />
</tal:search>
<item tal:repeat="item items">
<title tal:content="item/Title">Title of item</title>
<link tal:content="item/getURL | item/absolute_url">http://plone.org/itemurl</link>
<description tal:condition="python:item.meta_type == 'COREBlogEntry'">
<tal:block tal:repeat="ref item/getRefsByKind">
<tal:img tal:condition="python:ref.meta_type == 'ATImage'"
tal:replace="python:ref.tag(scale='mini', style='float: left;')"/>
</tal:block>
<tal:block tal:replace="item/CookedBody" />
</description>
<description tal:condition="python:item.meta_type != 'COREBlogEntry'"
tal:content="item/Description">
</description>
<pubDate tal:define="date item/modified"
tal:content="date/rfc822">
Wed, 16 Feb 2005 12:00:00 +0900
</pubDate>
</item>
</channel>
</rss>
Click here to get the file