Show any Twitter Feed on your site with ColdFusion and CFFEED
This is so simple, I'll let the comments do the 'splainin:
<!---
start CF Twitter Feed
--->
<!--- SET THE URL: add your username instead of mine --->
<cfset feedurl="http://search.twitter.com/search.atom?q=from%3Agowestweb" />
<!--- CFFEED does all the work --->
<cffeed
source="#feedurl#"
properties="feedmeta"
query="feeditems"
overwrite="true" />
<!--- CFOUTPUT shows the feed like a query --->
<ul class="tweet">
<!--- change maxrows to suit your layout --->
<cfoutput query="feeditems" maxrows="3">
<li>#content#</li>
</cfoutput>
</ul>
<!---
end CF Twitter Feed
--->
<!---
NOTE: in addition to #content#, you can show date and other columns related to each feed item.
Use <cfdump var="#feeditems#"> to see all the available columns in the query
--->


There are no comments for this entry.
Add Comment