Created
March 4, 2016 13:19
Include RSS-Feed into ColdFusion powered Website
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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ä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