I've been using a hard-coded DHTML cascading menu for site navigation, but believe its time to build the javascript menu arrays dynamically, server-side, using 'simpleNavigation'.
Magnolia includes its javascripts by including the javascript files in a JSP, then including the JSP in the HTML. This appears to be for purposes of passing some server-side (tomcat) variable values into the javascript before it comes over to the client (browser). I think I can build, and include, my menu arrays the same way. Well, maybe I don't want simpleNavigation, because I'd have to strip it apart to get just the URI's and Page Title's. I'll also need to add a flag to designate if I want a page to open a new window or not, but I'm not to the challenge yet. I've seen some of the code for iterating a collection of paragraph's, but what code will iterate a particular tree of Page Title's (and URI's)? I've had a look at the output of 'simpleNavigation', and noticed the 'Do not show this page in the navigation' control in the PageProperties. I have a few pages that should only be arrived at via a form POST, so checked and saved the 'don't show' control, but the pages are still there, even after a tomcat restart. Hasn't this issue appeared before and been fixed? Using 2.1 on Tomcat 5.0.28 on Suse Linux 9.0. ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/magnolia/developer.html ----------------------------------------------------------------
