OFBiz Menu widgets

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">

How to do it...

Menu widgets can be added by following these steps:

  1. Create a Menu widget definition within an existing Menu widget definition file.
  2. Give the Menu widget a name.
  3. Add one or more 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>
    
  4. Make sure to close all elements with end tags.
  5. Save and close the definition file.
  6. Add the Menu widget to an existing Screen widget definition. For example:<include-menu name="MyMenu" />

How it works...

Similar to the Tree widget, the Menu widget creates a list of HTML unordered list elements and associated HTML hyperlink markup based on configured XML declarations.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.26.108