Skip to content

Instantly share code, notes, and snippets.

@ronnieduke
Created May 14, 2014 18:32
Show Gist options
  • Save ronnieduke/fb93ed8c9263fbb075a2 to your computer and use it in GitHub Desktop.
Save ronnieduke/fb93ed8c9263fbb075a2 to your computer and use it in GitHub Desktop.
Get file metadata from Mura associated image
<!--- ==========================================
Use this in any page template or display object
============================================ --->
<!--- The meta for the associated image of a content node --->
<cfset fileBean = $.getBean('fileMetaData').loadBy(contentid=$.content('contentid'))>
<!--- If you want to get the meta from an extended attribute image --->
<cfset fileBean = $.getBean('fileMetaData').loadBy(fileid=$.content('extAttribute'))>
<!--- Credits --->
#fileBean.getCredits()#
<!--- Caption --->
#fileBean.getCaption()#
<!--- Alt Text --->
#fileBean.getAltText()#
<!--- View all metadata values --->
<cfdump var="#filebean.getAllValues()#">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment