Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

RSS 2.0

Can CityDesk 2.0 be used to create RSS 2.0 feeds?

John Topley (www.johntopley.com)
Sunday, September 14, 2003

http://www.fogcreek.com/CityDesk/kb/howto/CreatingRSSFeeds.html

The above is an artical from the knowledge base

Joel Goldstick
Sunday, September 14, 2003

Thanks you but I already have four of those. The article tells you how to create an RSS 0.91 feed.

John Topley (www.johntopley.com)
Monday, September 15, 2003

Try this. It assumes that all your articles have "(article)" in the keywords:

{$ withAbsoluteLinks "http://www.mysite.com" $}<?xml version="1.0" ?>
<rss version="2.0">
<channel>

<title>{$.SiteName$}</title>
<link>http://www.mysite.com/</link>
<description>{$.TagLine$}</description>
<language>en-gb</language>
<copyright>Copyright 2003</copyright>
<lastBuildDate>{$ setDateTimeFormat "English" "ddd, dd MMM yyyy" "HH:mm:ss GMT" $}{$ foreach 1 x in (keyword_contains "(article)") SortDescendBy .fileddate $}{$ x.modifiedDate $} {$ x.modifiedTime $}{$ next $}</lastBuildDate>

{$ foreach 8 x in (keyword_contains "(article)") SortDescendBy .fileddate $}
<item>
<title>{$x.headline$}</title>
<link>{$x.link$}</link>
<guid>{$x.link$}</guid>
<pubDate>{$ setDateTimeFormat "English" "ddd, dd MMM yyyy" "HH:mm:ss GMT" $}{$x.modifiedDate$} {$x.modifiedTime$}</pubDate>
<description>
<![CDATA[
{$x.body$}
]]>
</description>
</item>
{$ next $}
</channel>
</rss>

John C
Monday, September 15, 2003

Brilliant, I'll give it a go. Thanks John!

John Topley (www.johntopley.com)
Monday, September 15, 2003

Henrik Jernevad's great guide to creating RSS feeds in CityDesk is geared toward RSS 2.0:

http://www.henko.net/Computers/CreatingRSSfeedsusingCity.php

R Tate
Monday, September 15, 2003

Thanks, Henrik himself has just pointed this out to me.

John Topley (www.johntopley.com)
Monday, September 15, 2003

*  Recent Topics

*  Fog Creek Home