See below for an example of displaying images. This places the magazine images in the right hand column of Magazine page at www.drumonline.net
The images are stored as aObjectIDs, then use the contentobjectget to get the object, and then select what you wish to do, display thumbnail, main image or hi-res.
<cfsetting enablecfoutputonly="yes">
<cfimport taglib="/farcry/farcry_core/tags/container" prefix="con">
<cfimport taglib="/farcry/farcry_core/tags/webskin" prefix="skin">
<cfimport taglib="/farcry/fourq/tags/" prefix="q4">
<!--- Get Assoc Object IDs --->
<cfset l_AObjectIDs = ArrayToList(request.currentstobj.aObjectIDs)>
<cfif ListLen(l_AObjectIDs) gt 0>
<!--- Get Cover Issue Object --->
<cfset index_imageID = ListGetAt(l_AObjectIDs,1)>
<q4:contentobjectget objectid="#index_imageID#" r_stobject="this_image">
<cfif this_image.thumbnail neq "">
<cfoutput>
<h4>Print Edition</h4>
<img src="#application.url.webroot#/images/#this_image.thumbnail#" alt="#this_image.alt#" class="imgmagazine">
</cfoutput>
</cfif>
<cfoutput><h5>Advertisement</h5></cfoutput>
<!--- Display Random Magazine Image --->
<cfif ListLen(l_AObjectIDs) gt 1>
<cfset index_imageID = ListGetAt(l_AObjectIDs,#randrange(2,ListLen(l_AObjectIDs))#)>
<q4:contentobjectget objectid="#index_imageID#" r_stobject="this_image">
<cfif this_image.thumbnail neq "">
<cfoutput><img src="#application.url.webroot#/images/#this_image.thumbnail#" class="imgmagazine"></cfoutput>
</cfif>
</cfif>
</cfif>
<cfsetting enablecfoutputonly="no">
hth, Chris
Neil Robertson-Ravo wrote:
Whats the deal with the images tab of the back-end admin tool? I have inserted an image into it ...whats the tag which outputs it (I am assuming you must know the obj.id)?
I am really now getting stuck into a site for a demo in which I hope we will begin to use FarCry exclusively and I am hitting these small snags which the docs dont seem to cover....
N
--- You are currently subscribed to farcry-dev as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
