Sure. Get the properties for the node and check the length of “aObjectIds”. aObjectIds will be an array of objectids for children of the node.

 

<cfscript>

            stNodeProps = createObject(“component”, application.types.dmNavigation.typePath).getData(objectId=#nodeObjectId#);

            if(arrayLen(stNodeProps.aObjectIds)){

                        //it has children

            }

            else{

                        //it doesn’t have children

            }

</cfscript>

 

 

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Mercer
Sent: Wednesday, May 12, 2004 11:18 PM
To: FarCry Developers
Subject: [farcry-dev] Nav node has item

 

Is it possible to determine if a navigation node has at leat one page (dmHTML or otherwise) associated with it?

 

No point going to this if there is nothing to display.

 

Regards,
Andrew Mercer
Senior Developer

Power
Business Systems
18-20 Piccadilly Square
7 Aberdeen Street
Perth WA 6000

T: +61 8 9221 1182
F: +61 8 9325 5198

E: [EMAIL PROTECTED]

W: www.power.net.au

 

CAUTION -

This message may contain privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Power Business Systems immediately. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Power Business Systems.

 

 

---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to