Create nav nodes Home, Corporate, Investors and Contact Us under home in the tree. Then create a new node called "Dynamic Nav" or something like that under root. make sure there is a nav_alias. Then create your sub nav nodes under there. You will be able to use the same genericnav class twice. The first time pass it the function getDescendants and the navId of home (application.navid.home). Also, pass it depth of 1 and bIncludehome = true.. The second time you call it, pass it the same function, depth 2 (or however many levels you are going to need) and the navId of Dynamic Nav. Assuming you created the nav alias of "dyn_nav" for that, you would pass it application.navid.dyn_nav.
The other way to do it would be to extend the dmHTML type and add a checkbox or Radio button to be able to dynamically turn a flag on and off. If the flag is on it's in the 2nd row, if it's off, it's in the first. This way you could dynamically move items from one row to the next without actually moving the node in the tree. The third way I can think of is to do some testing in genericnav and probably loop over everything twice. Speed would not be an issue here because you'd use the same query (qNav). It'd actually be faster because if you called it twice, it'd generate that query twice and loop twice, where here it would generate the query once and loop twice. Regardless, what you'd do is find out if each nav node has children or not. In your first loop, just output those without children (Home would need to be done statically because everything is a child of Home). In the second loop, output everything with children and include their children. Hope that helps. -Jake Chris Roth wrote: > Hmm. I have an interesting dilema I hope someone can help me resolve > quickly.. > > I need to break up my main header navigation in to 2 parts. > > Assuming all Nav Objects are at the same level, I need a header bar(s) > like this. > > > [home] [corporate] [investors] [contact us] > > [products] [services] [news] [events] > > nav bar 1 will have a depth of 1 so no sub navs display, nav 2 will use > the mollio classes to display the children. > > I could go "static" with my nav 1 I suppose, but static is boring.. for > nav two I certainlly need to be dynamic so navs can be added/moved, > etc. > > ideas? > > > > > > -- Jake Churchill CF Webtools 11204 Davenport, Ste. 200b Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~---
