Last active
November 27, 2017 14:38
-
-
Save stevewithington/8985268 to your computer and use it in GitHub Desktop.
Mura CMS : This example shows how to grab an external RSS feed, pull it into Mura, and create an Iterator.
This file contains 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
<section> | |
<h2>Mura CMS</h2> | |
<cffeed query="rs" source="http://www.getmura.com/tasks/feed/?feedID=91B4E7A5-37AC-466A-ACDF6ABFD95ACCBD" /> | |
<cfset it = $.getBean('beanIterator').setQuery(rs) /> | |
<ul> | |
<cfif it.hasNext()> | |
<cfloop condition="it.hasNext()"> | |
<cfset item = it.next()> | |
<li> | |
<a href="#item.getValue('rsslink')#"> | |
#HTMLEditFormat(item.getValue('title'))# | |
</a> | |
#item.getValue('content')# | |
<!--- <cfdump var="#item.getAllValues()#" /> ---> | |
</li> | |
</cfloop> | |
<cfelse> | |
<li>No items exist.</li> | |
</cfif> | |
</ul> | |
</section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steve. How do I grab the local content index RSS feed URL, programmatically?
Is it something like:
$.createHREF(feedid='8F2BDCBA-84A6-C828-BCCF080DE8565329')
I want to add an RSS feed icon at the top of my blog
Thanks