Sorry Jeff, I have been sitting on this to see if any one posted a
better solution - this one require a check one every node (as you loop
through). Hoping there may be a way to return a property returned with
the navQury


<cfobject name="nodeCheck"
component="#application.types.dmNavigation.typePath#">
... nav loop ...
<cfset nodeData = nodeCheck.getData(objectid=qNav.objectid)>
<cfif (isDefined("nodeData.aObjectIds") AND
arrayLen(nodeData.aObjectIds)) OR (isDefined("nodeData.EXTERNALLINK")
AND len(nodeData.EXTERNALLINK))>
    ... has objects or external links attached ...
<cfelse>
    ... just a node ...
</cfif>

dump nodeData and see what else is returned - you might have to
determin the object type if you are only after specific object types



On Thu, 20 Jan 2005 17:52:58 -0500, Jeff Coughlin <[EMAIL PROTECTED]> wrote:
> Jeff Coughlin wrote:
> >
> > I am trying to find if there are any dmHTML or dmIncludes in my parent
> > dmNavigation object but don't know how.  Any idea?
> 
> I've now spent about 14+ hours trying to figure this out.  I could only
> seem to come up with a solution by making my own query.  I'm not happy
> with using this as an option but I don't know any other way to do this.
>   I'll probably put this into a custom CFC.  If anyone has a cleaner
> solution please let me know.
> 
> Here's what I came up with:
> 
> <cfset myParentID =
> application.factory.oTree.getParentID(objectid="#request.navid#").ParentID[1] 
> />
> <cfquery name="qAObjectIDs" datasource="#application.dsn#">
>    select *
>    from dmNavigation_aObjectIDs
>    where objectid = '#myParentID#'
> </cfquery>
> 
> <cfloop query="qAObjectIDs">
>    <cfset thisType =
> application.factory.oGenericAdmin.FindType(objectid=data) />
>    <cfif thisType eq 'dmHTML' or thisType eq 'dmInclude'>
>      Do Something
>    </cfif>
> </cfloop>
> 
> 
> -Jeff C.
> 
> ---
> You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/
>

---
You are currently subscribed to farcry-dev as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to