-----Original Message-----This this Scott Chidester of the old In2action?
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Sophek Tounn
Sent: Wednesday, August 17, 2005 3:09 PM
To: [email protected]
Subject: Re: RSS.xml
Thanks
Sophek
On 8/17/05, scott chidester <[EMAIL PROTECTED]> wrote: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
CONFIDENTIALITY NOTICE: The information contained in this e-mail and attached document(s) may contain confidential information that is intended only for the addressee(s). If you are not the intended recipient, you are hereby advised that any disclosure, copying, distribution or the taking of any action in reliance upon the information is prohibited. If you have received this e-mail in error, please immediately notify the sender and delete it from your system.
