Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

<cffeed>

Participant ,
Dec 11, 2007 Dec 11, 2007
I am very new to the world of xml and rss feeds but I want to understand it. Someone told me that the cf8 tag, cffeed will help me read in data from a blog I burned to the feedburner site. I was hoping someone could help me with the syntax of the cffeed tag. Let's say I want to read in this blog (not real) with: http://codemadnessblog.blogspot.com/

Where do I begin?
571
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 11, 2007 Dec 11, 2007
You should be able to accomplish that with the following:
<cffeed source=" http://codemadnessblog.blogspot.com/" properties="theFeed" query="rsFeed" />

The cffeed tag will return a query object which you can use to output the feed data:
<cfif rsFeed.RecordCount GTE 1>
<cfoutput>
<h3>#theFeed.title# RSS Feed</h3>
</cfoutput>
<p>
<cfoutput query="rsFeed" maxrows="5">
<cfif theFeed.version IS "atom_1.0">
<a href="#linkhref#">#title#</a>
<cfelse>
<a href="#rsslink#">#title#</a>
</cfif>
<p>#content#</p>
</cfoutput>
<cfelse>
<h3>No RSS Feed Currently Available</h3>
</cfif>

Hope that helps get you going!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Dec 11, 2007 Dec 11, 2007
That makes sense to me.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Dec 11, 2007 Dec 11, 2007
LATEST
Hi craig... I got it working. I made a tweak to the source and it's working like a charm. Thank you!

Now I do have another question... Let's say I have 3 blogs I want to track and want to list the blogs in DESC order as they are updated... Is there a way to do that? Can I, with the cffeed tag, store blog info as it's updated? That way I can list blogs as db updates in DESC order.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources