Skip to main content
Dec 11, 2007 4:21 PM UTC
Question

<cffeed>

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?
    This topic is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    Dec 12, 2007 5:37 AM UTC
    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
    Dec 11, 2007 11:47 PM UTC
    That makes sense to me.
    Translate
    Inspiring
    Dec 11, 2007 7:41 PM UTC
    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