| CollapsableMenu | Single Line Menu | |
| QuickNavigationMenu | QuickParentNavigationMenu | |
| MultiLineMenu | ||
|
| ||
In order to make the creation of a WebMenu object easier, the WebMenu module also includes a xml.dom.minidom parser that reads and xml file and returns a WebMenu object. The Web Content Management System expects the menu structure for the site to be an XML document.
The XML document that describes the menu structure for this minisite is:
<?xml version="1.0" ?> <!DOCTYPE WEBNAVIGATION SYSTEM "http://www.spiritone.com/~english/code/webnavigation.dtd"> <webnavigation title="WebMenu Documentation" href="webmenu.html" key="home"> <global separator=" | " useLower="1" useNoBreak="0" menutag="span" singlelineseperator = " >>"> <menuclass>menu</menuclass> <linkclass>link</linkclass> <pageclass>page</pageclass> <hereclass>here</hereclass> </global> <page title="Introduction" href = "intro.html" key ="intro"/> <menu title="Creating Menus in Python" href="python.html" key="python"> <page title="Setting the Defaults" href="default.html" key="default"/> <page title="Adding Pages and Menus" href="adding.html" key="adding"/> </menu> <page title="The WebPage Class" href="webpageclass.html" key="webpage"/> <page title="The WebMenu Class" href="webmenuclass.html" key="webmenu"/> <page title="Using XML to define a Web Menu object" href = "xml.html" key="xml"/> <page title="Questions about WebMenu" href="questions.html" key="qna"/> </webnavigation>
Step by step, here are the sections:
Back to my code page Back to my home page ©2003 english@spiritone.com