Skip to content

Instantly share code, notes, and snippets.

@ITfee
Created March 4, 2016 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ITfee/f0ff189158e6f3501b95 to your computer and use it in GitHub Desktop.
Save ITfee/f0ff189158e6f3501b95 to your computer and use it in GitHub Desktop.
Include RSS-Feed into ColdFusion powered Website
<cfset rssUrl = "http://itfee.de/feed">
<cffeed action="read" source="#rssUrl#" query="entries" properties="info">
<cfoutput query="entries" maxrows="3">
<div id="news">
<div id="datum">
<cfset stringtoreplace = #DateFormat(publisheddate,"dd. mmmmm yyyy")#>
#ReplaceList(stringtoreplace, "January,February,March,May,June,July,October,December", "Januar,Februar,M&auml;rz,Mai,Juni,Juli,Oktober,Dezember")#
</div>
<div id="headline">#title#</div>
<div id="text">#content# <a href="#rsslink#">Weiterlesen</a></div>
</div>
</cfoutput>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment