Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Gallery Image Slider insert for tinyMCE
<cfsetting enablecfoutputonly="true">
<!--- @@displayname: Image Slider --->
<!--- @@author: Phillip Rasmussen --->
<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="gallerySlider" 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.