index.rdf
RSS 1.0で更新情報を提供するためのPage Templateのソースファイルです。
サイズ 2.1 kB - File type text/xmlファイルのコンテンツ
<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns="http://purl.org/rss/1.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')" />
<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>
<channel tal:attributes="rdf:about here/portal_url">
<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>
<items>
<rdf:Seq>
<tal:block tal:repeat="item items">
<rdf:li tal:attributes="resource item/getURL | item/absolute_url" />
</tal:block>
</rdf:Seq>
</items>
</channel>
<item tal:repeat="item items" tal:attributes="rdf:about item/getURL | item/absolute_url">
<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>
<dc:date tal:define="date item/modified"
tal:content="date/ISO8601">2005-02-16T12:00:00+09:00</dc:date>
</item>
</rdf:RDF>
Click here to get the file