OFBiz Menu widgets are widgets that automatically generate HTML unordered list elements (HTML ul
and li
markup tags) from lists of database content or other sources. For example, Menu widgets figure prominently in the Accounting Manager Application by generating menu options for the main web page.
OFBiz Menu widgets are defined in XML document files containing the following XSD:
<menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "http://ofbiz.apache.org/dtds/widget-menu.xsd">
Menu widgets can be added by following these steps:
menu-item
elements as shown:<menu name="MyMenu" title="Menu"> <menu-item name="myMenuItem1" title="Menu Items 'R Us"><link="someLink2" /> </menu-item> <menu-item name="myMenuItem2" title="Menu Items 'R Us"><link="someLink2" /> </menu-item> </menu>
<include-menu name="MyMenu" />
3.129.26.108