Date: Fri, 29 Mar 2024 13:44:09 +0000 (UTC) Message-ID: <1139494328.5.1711719849174@6b250173f0b3> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_4_1582046777.1711719849173" ------=_Part_4_1582046777.1711719849173 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Try this very simple image gallery rule. Grey box is basically a pop up = window that doesn't suck. Just install the existing FarCry Greybox plugin a= nd you are all set. Select the images you want from the image library and d= isplay them using Grey Box.
Really simple installation for your project:
<cfc= omponent displayname=3D"Image Gallery" extends=3D"farcry.core.packages.rule= s.rules"=20 =09hint=3D"Displays a collection of selected images as a Gallery." =09bObjectBroker=3D"true"=20 =09lObjectBrokerWebskins=3D"execute"> <cfproperty ftseq=3D"1" ftfieldset=3D"Image Gallery" name=3D"prefix" typ= e=3D"string" default=3D"" hint=3D"Prefix HTML." ftlabel=3D"Prefix HTML" /&g= t;=09 <cfproperty ftseq=3D"2" ftfieldset=3D"Image Gallery" name=3D"aImages" ty= pe=3D"array" default=3D"" hint=3D"Array of images to display." fttype=3D"ar= ray" ftjoin=3D"dmimage" ftlabel=3D"Collection of Images" /> <cfproperty ftseq=3D"3" ftfieldset=3D"Image Gallery" name=3D"suffix" typ= e=3D"string" default=3D"" hint=3D"Suffix HTML." ftlabel=3D"Suffix HTML" /&g= t; </cfcomponent>
Create a folder under your project webskin directory called: ./webskin/r= uleImageGallery
<cfs= etting enablecfoutputonly=3D"true" /> <!--- @@displayname: Image Gallery ---> <!--- @@author: Geoff Bowers ---> <!--- @@hashURL: true ---> <!--- import tag libraries ---> <cfimport taglib=3D"/farcry/core/tags/formtools/" prefix=3D"ft" /> <cfimport taglib=3D"/farcry/plugins/farcrygreybox/tags" prefix=3D"gb" /&= gt; <!--- output prefix html ---> <cfoutput>#stobj.prefix#</cfoutput> <cfloop from=3D"1" to=3D"#arrayLen(stobj.aImages)#" index=3D"i"> =09<ft:object objectid=3D"#stobj.aImages[i]#" lfields=3D"thumbnailimage,= sourceimage,objectid,alt" format=3D"display" r_stfields=3D"stfields" /> =09<gb:imageSet imageurl=3D"#stfields.sourceimage.value#" title=3D"#stfi= elds.alt.value#"> =09=09<cfoutput><img src=3D"#stfields.thumbnailimage.value#" alt= =3D"#stfields.alt.value#" /></cfoutput> =09</gb:imageSet> </cfloop> <!--- output suffix html ---> <cfoutput>#stobj.suffix#</cfoutput> <cfsetting enablecfoutputonly=3D"false" />