View Full Version : Creating sub sub menu with xml

12-05-2007, 11:57 AM
Hi im creating a menu system with xml code, im trying to create a sub sub menu, so that when you go on About Big it will open up another sub sub menu with the name Sky. But i cant figure out how to create them! Help would be great as im a noob to all this stuff. Thanks

<menu1 name="VISION" url="yoururl">
<sub name="About Big" url="yoururl"></sub>
<sub name="John" url="yoururl"></sub>

12-05-2007, 07:33 PM
Link to a tutorial: XML Drop down (http://www.kirupa.com/developer/actionscript/xml_dropdown_menu.htm)
this tutorial is about making a drop down menu driven by XML in flash but you can apply it to the same princable in HTML :)

12-06-2007, 10:42 AM
Hey i have managed to use that page to create my menu, but when trying to add in a menu within the menu e.g

VISION > with options of About Bigsky & Test > then from TEST options of John St, Meet them Team & Funding

Main headings of NEWS, VISION etc

then within VISION there are subheadings of About Bigsky,TEST

and from TEST i want further options to appear (highlighted in red) but it keeps removing these further menu options and not showing them

Any idea why it gets rid of those items?

<?xml version="1.0"?>
<menu name="NEWS" url="yoururl">
<menu1 name="VISION" url="yoururl">
<sub name="About Bigsky" url="yoururl"></sub>
<menu1.1 name="TEST" url="yoururl">
<sub name="John ST" url="yoururl"></sub>
<sub name="Meet the team" url="yoururl"></sub>
<sub name="Funding" url="yoururl"></sub>

<menu2 name="DEPARTMENTS" url="yoururl">
<sub name="Bigskymusic" url="yoururl"></sub>
<sub name="Bigskydesign" url="yoururl"></sub>
<sub name="Bigskymission" url="yoururl"></sub>
<sub name="Bigskyadventure" url="yoururl"></sub>
<sub name="Core magazine" url="yoururl"></sub>

<menu3 name="NETWORK" url="yoururl">
<sub name="Slovakia" url="yoururl"></sub>
<sub name="Switzerland" url="yoururl"></sub>
<sub name="Canada" url="yoururl"></sub>
<sub name="India" url="yoururl"></sub>
<sub name="Kosova / Serbia" url="yoururl"></sub>

<menu4 name="SERVICES" url="yoururl">
<sub name="Gigs / Tours" url="yoururl"></sub>
<sub name="Worship leading" url="yoururl"></sub>
<sub name="Wild worship" url="yoururl"></sub>
<sub name="Speaking" url="yoururl"></sub>
<sub name="Design" url="yoururl"></sub>
<sub name="Sports" url="yoururl"></sub>

<menu5 name="CONTACT" url="yoururl">
<sub name="Details" url="yoururl"></sub>

12-16-2007, 06:46 PM
Why not just take an approach similar to XHTML 2.0 and have menu elements nested inside menu_item elements, like nl (navigation list) and li (list item) elements?

<menu_item>Main menu

Just an example with no items, of course, but it does demonstrate how it might work. It might be rendered as:

Main Menu

Just a thought...