Skip to main content
December 11, 2007
質問

<cffeed>

  • December 11, 2007
  • 返信数 3.
  • 608 ビュー
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?
    このトピックへの返信は締め切られました。

    返信数 3

    December 12, 2007
    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.
    December 11, 2007
    That makes sense to me.
    Inspiring
    December 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!