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/
