change the ofbiz "main menu" and "sub menu" into a single UL

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

change the ofbiz "main menu" and "sub menu" into a single UL

vjaravind
change the ofbiz "main menu" and "sub menu" into a single UL, LI structure? by default there is two < UL > tags one for the applications menu and one for the sub menu of the current application.and i did following steps
1.in the folder //framework/common/widget open CommonScreens.xml


2.in that < section > you will comment this condition:

<condition><not><if-empty field="appheaderTemplate"/></not></condition>

3.and also comment this tag (this is the default menu)
<html-template location="${appheaderTemplate}"/>

4.Now add this tag instead of the tag you commented in steap 4
<html-template location="component://common/webcommon/menu.ftl"/>

5.Create a new file in //framework/common/webcommon with the name menu.ftl in this file you can write html code in the menu section.

6.finally we need to get rid of the CommonAppBarMenu for that you need to open //framework/common/widget/CommonMenus.xml and there comment this code

<menu-item name="main" title="${uiLabelMap.CommonMain}">
    <condition><not><if-empty field="userLogin"/></not></condition>
    <link target="main"/>
</menu-item>


after i don't know how to link menu.ftl with main menus.please help us