Login   Register  
PHP Classes
elePHPant
Icontem

File: menu.xml

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Geoff Foley  >  XML Site Navigation  >  menu.xml  >  Download  
File: menu.xml
Role: Auxiliary data
Content type: text/plain
Description: Example XML menu file
Class: XML Site Navigation
Display a menu of links read from a XML file
Author: By
Last change:
Date: 2009-09-11 14:53
Size: 1,141 bytes
 

Contents

Class file image Download
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Each 'level' contains user access level appropriate menu items.

This structure can also be used to provide for page-level menus instead of access-level menus.

It could even be used for the management of multiple menus across multiple pages. The options are really limitless.

The 'level' concept is just how I initially designed the menu system to work as it was required at the time.

For each menu item, the URL and TITLE tags are required.

The <target>new</target> element is optional and is used to generate anchor tags with a 'target=new' attribute.
-->
<website>
    <menu>
        <level1>
            <item>
                <url>http://www.yahoo.com</url>
                <title>Yahoo!</title>
            </item>
            <item>
                <url>http://www.google.com</url>
                <title>Google</title>
                <target>new</target>
            </item>
            <item>
                <url>http://www.phpclasses.org</url>
                <title>PHPClasses.org</title>
            </item>
        </level1>
        <level2></level2>
    </menu>
</website>