Skip to content

Instantly share code, notes, and snippets.

@neokoenig
Created June 1, 2011 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neokoenig/1002388 to your computer and use it in GitHub Desktop.
Save neokoenig/1002388 to your computer and use it in GitHub Desktop.
Flickr2
<cfoutput>
<h2>Photos</h2>
<!--XML last cached #application.FlickrXmlstarted#--->
<cfloop from="1" to="#ArrayLen(photosets)#" index="i">
<cfoutput>
<div id="photoset" class="clear">
<!---Output primary image--->
<img class="left" src="http://farm#photosets[i].XmlAttributes['farm']#.static.flickr.com/#photosets[i].XmlAttributes['server']#/#photosets[i].XmlAttributes['primary']#_#photosets[i].XmlAttributes['secret']#_s.jpg">
<!---output title--->
<h4><a href="http://www.flickr.com/photos/#userid#/sets/#photosets[i].XmlAttributes['id']#/">#photosets[i].title.xmltext#</a></h4>
<!---If description exists, show--->
<cfif len(photosets[i].description.xmltext)>
<p>#photosets[i].description.xmltext#</p>
</cfif>
</div>
</cfoutput>
</cfloop>
</cfoutput>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment