You do that through dmNavigation. dmNav has a method getParent, that takes
the objectid of an content item and returns the objectID of the dmNav
containing that item.
So you would do a
<cfset cfcNav = CreateObject("component",
"#application.packagepath#.dmNavigation")/>
<cfset navObjID = cfcNav.getParent( contentObjID )/>
You probably shouldn't hard code the package path of dmNav into the call;
there is an application variable that is preferred:
application.types.dmNavigation.typePath
<cfset cfcNav = CreateObject("component",
application.types.dmNavigation.typePath)/>
It is a bit counter-intuituve, going to dmNav for content property, but that
is where the item is associated w/dmNav at the db level.
Scott Talsma
CTO
echo.eleven
404.845.3458
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Langshaw
Sent: Wednesday, January 04, 2006 3:34 PM
To: farcry-dev
Subject: [farcry-dev] Re: Nested Tree Objects, getting descendants
The gist of it is is this: how can a dmHTML node know what is hierarchy is
(or where in the tree it is)?
It would be great if given the objectid of a dmHTML node (or any non-dmNav
node) you can get all ANCESTRAL dmNav nodes in return....