Skip to content

Instantly share code, notes, and snippets.

@stevewithington
Last active November 27, 2017 14:38
Show Gist options
  • Save stevewithington/8985268 to your computer and use it in GitHub Desktop.
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.
<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>
@charlesr1971
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment