Sorted...damn FarCry is the dogs nads.... :-)


<cfset relatedids = arraytoList(stObj.aRelatedIDs,",")> <cfset qRelated = queryNew("objectid, title")>

<!--- get all related links to page --->
<cfloop list="#relatedids#" index="item">
<!--- get related item details --->
<q4:contentobjectget objectID="#item#" r_stobject="stRelated">
<!--- add row to query --->
<cfset temp = queryAddRow(qRelated, 1)>
<cfset temp = querySetCell(qRelated, "objectid", item)>
<cfset temp = querySetCell(qRelated, "title", stRelated.title)>
</cfloop>

<cfloop query="qRelated">
<cfoutput><a href="<skin:buildLink urlOnly="true" objectid="#qRelated.objectid#"></skin:buildLink>" >#qRelated.title#</a></cfoutput>
</cfloop>








Neil Robertson-Ravo wrote:

Hey all,


Whats the full syntax for using the related linsk? I dont really wanna just use the standard call which outputs breaks etc...

Is it just a case of using your own CF to query the stObj then looping through using contentobjectget?

Any examples?

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

Reply via email to