I found some code in relatedcontent.cfm which results in:
<!--- GET THE RELATED CONTENT --->
<cfset qRelatedContent =
application.coapi.coapiutilities.getRelatedContent
(objectid="#stobj.objectid#", typename="dmnews", filter="dmfile",
arrayType="", arrayProperty="ARELATEDIDS")>
<cfif qRelatedContent.recordCount>
<skin:relatedcontent
objectid="#stobj.objectid#"
arrayProperty="ARELATEDIDS"
typename="dmnews"
filter="dmfile"
webskin="insertHTML_download"
rendertype="none" />
<cfelse>
no manual
</cfif>
On May 3, 8:19 pm, Marco van den Oever <[email protected]>
wrote:
> I want to be able to show a alternative value when no related file is
> found, for every content item i use a related file webskin and i want
> to show a "no file" statement when for a specific content item there
> are no related content files.
>
> Is these already such function? Is it an idea to include a attribute
> in the skin:relatedcontent webskin like "nofile=blabla".
>
> At this moment the webskin just show nothing when nothing is found.
>
> Of course you could loop over the ARELATEDIDS array and check for the
> specific file existence, but before doing so i wanted to check if
> there's already something for it.
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---