You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "aravind (JIRA)" <ji...@apache.org> on 2015/02/03 14:52:34 UTC

[jira] [Created] (OFBIZ-6055) My question: is there a way to 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.Please Help Us

aravind created OFBIZ-6055:
------------------------------

             Summary: My question: is there a way to 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.Please Help Us
                 Key: OFBIZ-6055
                 URL: https://issues.apache.org/jira/browse/OFBIZ-6055
             Project: OFBiz
          Issue Type: New Feature
          Components: ALL APPLICATIONS, themes
    Affects Versions: 13.07.01
         Environment: My question: is there a way to 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.
            Reporter: aravind
             Fix For: 13.07.01


 I'm looking for help about creating menus and submenus.and i did following steps
1.in the folder //framework/common/widget open CommonScreens.xml
<!--render appheader: both menu widget style and ftl template style menus are supported-->

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




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)