Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Creating sub sub menu with xml

    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>
    <menu1 name="VISION" url="yoururl">
    <sub name="About Big" url="yoururl"></sub>
    <sub name="John" url="yoururl"></sub>
    </menu1>

  • #2
    Regular Coder
    Join Date
    Mar 2007
    Location
    UK
    Posts
    151
    Thanks
    9
    Thanked 2 Times in 2 Posts
    Link to a tutorial: XML Drop down
    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

  • #3
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


    NEWS
    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"?>
    <menus>
    <menu name="NEWS" url="yoururl">
    </menu>
    <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>

    </menu1.1>
    </menu1>

    <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>
    </menu2>

    <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>
    </menu3>

    <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>
    </menu4>

    <menu5 name="CONTACT" url="yoururl">
    <sub name="Details" url="yoururl"></sub>
    </menu5>
    </menus>
    Last edited by philawde; 12-06-2007 at 10:49 AM.

  • #4
    Regular Coder
    Join Date
    Mar 2005
    Location
    D0u$h!t3 k4?
    Posts
    512
    Thanks
    2
    Thanked 5 Times in 5 Posts
    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?

    Code:
    <menu>
        <menu_item>Main menu
            <menu>
                <menu_item>Sub-Menu
                    <menu>
                        <menu_item>Sub-Sub-Menu</menu_item>
                    </menu>
                </menu_item>
            </menu>
        </menu_item>
    </menu>
    Just an example with no items, of course, but it does demonstrate how it might work. It might be rendered as:
    Code:
    Main Menu
        Sub-Menu
            Sub-Sub-Menu
    Just a thought...
    PHP Code:
    $hello file_get_contents('hello.txt'); echo $hello
    hello


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •