Re: RSS 2

Mikel Larreategi <[email protected]>
Newsgroups gmane.comp.python.zope.coreblog.english
Message-ID <[email protected]>
Brian Sullivan wrote:
> Is there a move afoot or is there an existing mod to COREBlog to support RSS V2?

If you want to have a RSS 2 feed in your blog, you can create a DTML 
Method inside your COREBlog with this content:

<dtml-call "RESPONSE.setHeader('content-type', 'text/xml; 
charset=ISO-8859-1')"><?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
   <channel>
     <title><dtml-var title></title>
     <link><dtml-var blogurl></link>
     <description><dtml-var blog_description></description>
     <dtml-in "rev_day_entry_items(count=top_days)">
      <item>
       <title><dtml-var title></title>
       <link><dtml-var blogurl>/<dtml-var id></link>
       <description><dtml-var excerpt></description>
       <dtml-in entry_category_list>
         <category><dtml-var name></category>
       </dtml-in>
       <comments><dtml-var blogurl>/<dtml-var id>#comments</comments>
       <dc:creator><dtml-var author html_quote></dc:creator>
       <dc:date><dtml-var 
"date_created().toZone('UTC').strftime('%Y-%m-%dT%H:%M:%SZ')"></dc:date>
      </item>
     </dtml-in>
   </channel>
</rss>

Regards,



-- 
Mikel Larreategi
[email protected]

CodeSyntax
Azitaingo Industrialdea 3 K
E-20600 Eibar
Tel: (+34) 943 82 17 80
_______________________________________________
COREblog-en mailing list
COREblog-en-/9qXvnWia/9Wk0Htik3J/[email protected]
http://postaria.com/cgi-bin/mailman/listinfo/coreblog-en
Unsubscription writing to coreblog-en-leave-/9qXvnWia/9Wk0Htik3J/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.