Colin,
Below is an example of how to create a simple RSS feed in CF. Just need to run a loop over the <item> tag for all of your content.
Here are some links for reference:
http://www.mnot.net/rss/tutorial/
http://blogs.law.harvard.edu/tech/rss
Hope this helps!
Scott
************************************************************
<cfoutput>
<cfsavecontent variable="request.fileContent">
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>TITLE</title>
<link>http://www.mysite.com</link>
<description>MY DESCRIPTION</description>
<language>en-us</language>
<lastBuildDate>#dateformat(now(), "ddd, dd mmm yyyy")# #timeformat(now(), "HH:mm:ss")# CDT</lastBuildDate>
<docs>#xmlformat("http://blogs.law.harvard.edu/tech/rss")#</docs>
<managingEditor>EMAIL ADDRESS</managingEditor>
<webMaster>EMAIL ADDRESS</webMaster>
<ttl>1440</ttl>
<image>
<title>IMAGE TITLE</title>
<url>IMAGE URL</url>
<link>URL TO SITE HOMEPAGE</link>
<width>IMAGE WIDTH</width>
<height>IMAGE HEIGHT</height>
</image>
<!--- LOOP OVER
ITEMS --->
<item>
<title>TITLE OF ITEM</title>
<link>LINK TO ITEM</link>
<category>CATEGORY OF ITEM</category>
<description>DESCTIPTION OF ITEM</description>
<pubDate>#dateformat(now(), "ddd, dd mmm yyyy")# #timeformat(now(), "HH:mm:ss")# CDT</pubDate>
<author>EMAIL
ADDRESS</author>
</item>
</channel>
</rss>
</cfsavecontent>
</cfoutput>
<cffile action="" file="rss-feed.xml" output="#request.fileContent#" nameconflict="overwrite">
****************************************************************
From: "Colin Wilson" <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: <[email protected]>
Subject: RSS.xml
Date: Wed, 17 Aug 2005 11:23:06 -0700
Just curious - does anyone have a good resource for creating an rss.xml file from a cold fusion query.ThanksColin
