Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Gallery Image insert for tinyMCE
<cfsetting enablecfoutputonly="true">
<!--- @@displayname: Image Gallery --->
<!--- @@author: Phillip Rasmussen --->
<cfimport taglib="/farcry/core/tags/webskin" prefix="skin">
<cfif len(stobj.imgcoversourceid)>
<cfset coverImageID = stobj.imgcoversourceid>
<cfset coverImageID = stobj.aImage[1]>
<cfif len(coverImageID)>
<cfset stCoverImage = application.fapi.getContentObject(typename="dmImage", objectid=coverImageID)>
<cfoutput><img src="#stCoverImage.thumbnailimage#" class="galleryInsert" rel="#stobj.objectid#"></cfoutput>
<cfsetting enablecfoutputonly="false">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.