Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <!--- Use cffeed to READ an RSS feed (CF8 and up) --->
  2. <cftry>
  3.     <cffeed action="read" source="http://path.to/feed" query="rsFeed">
  4.     <cfcatch type="any"><!--- An error occurred --->
  5.         <cfset rsFeed = "">
  6.     </cfcatch>
  7. </cftry>
  8.  
  9. <!--- Use cfdump to display the result xml to fine tune what you want to output --->
  10. <cfdump var="#rsFeed#">
  11.  
  12. <!--- Use this to output the resulting feed wherever you want --->
  13. <cfif isQuery(rsFeed)>
  14.     <cfoutput query="rsFeed"><p>
  15.         <a href="#rsFeed.rssLink#">#rsFeed.Title#</a><br />
  16.         <small class="nowrap">#DateFormat(rsFeed.PublishedDate, 'mmm d, yyyy')#</small>
  17.     </p>
  18.     </cfoutput>
  19. <cfelse>
  20.     <p>Feed is temporarily unavailable.</p>
  21. </cfif>