To answer my own question, the following fragment did the trick:

        <CFSET theObjectID = '#request.stobj.objectID#'>
        <CFSET application.types.dmNavigation.typePath)>
        <CFSET theNavID = oNav.getParent(objectid=theObjectID).objectID>


At 03:00 PM 16/12/2004, Peter Jones wrote:
Hi all,

I'm new to farcry development and I am struggling to find an elegant way to determine the objectID of the navigation node that contains a particular dmHTML page (specified by its objectID).

I tried calling:
   request.factory.oTree.getParentID(objectid = thePageID).parentID
but this returns null when passed the ID of a dmHTML object (works fine if passed a nav node id though).

Any suggestions gratefully received.

Kind regards,
Peter Jones.

Director Educational Technologies and Senior Lecturer
Faculty of Law                    PH: (03) 8344 6203
University of Melbourne           or 0419 337 274 (AH)
Parkville VIC 3010               Fax: (03) 9347 2392
EMail: [EMAIL PROTECTED]    Web: http://www.law.unimelb.edu.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/
---
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