Hi,
I'm fighting with the 13.07 to get the 2nd level menu list. I want to make a summary menu that show menu for all applications. This is a pity that it's a nightmare to get the link from a component that is not the current one. I'm lost in the ModelMenuItem and other WidgetWorker. I know that my list (including the precious menu link) could be find in the renderSimpleMenuString but all is stored in a Appendable variable (called writer) that I don't know how to use... Impossible for me to extract the link from the list created from menu location. Is anybody have a clue on how to extract the link (not only the URI, the complete link). I continue to dig so, if I finally found something, l'll send the solution or the give up message here. Thanks in advance for your help, Julien. |
Try looking in the header FreeMarker templates. They call a static Java
method to get information for the main navigation. There is no menu widget for main navigation. Adrian Crum Sandglass Software www.sandglass-software.com On 10/14/2015 5:55 AM, Julien NICOLAS wrote: > Hi, > > I'm fighting with the 13.07 to get the 2nd level menu list. > I want to make a summary menu that show menu for all applications. This > is a pity that it's a nightmare to get the link from a component that is > not the current one. > > I'm lost in the ModelMenuItem and other WidgetWorker. I know that my > list (including the precious menu link) could be find in the > renderSimpleMenuString but all is stored in a Appendable variable > (called writer) that I don't know how to use... > Impossible for me to extract the link from the list created from menu > location. > > Is anybody have a clue on how to extract the link (not only the URI, the > complete link). > > I continue to dig so, if I finally found something, l'll send the > solution or the give up message here. > > Thanks in advance for your help, > > Julien. > > > |
Thanks for the fast answer Adrian.
The main menu is the Application level menu, but my goal is to get the second level menu. In the 13.07, there is no freemarker file for this level. It's a java renderer file for this level and the other lower one. Le 14/10/2015 15:08, Adrian Crum a écrit : > Try looking in the header FreeMarker templates. They call a static > Java method to get information for the main navigation. There is no > menu widget for main navigation. > > Adrian Crum > Sandglass Software > www.sandglass-software.com > > On 10/14/2015 5:55 AM, Julien NICOLAS wrote: >> Hi, >> >> I'm fighting with the 13.07 to get the 2nd level menu list. >> I want to make a summary menu that show menu for all applications. This >> is a pity that it's a nightmare to get the link from a component that is >> not the current one. >> >> I'm lost in the ModelMenuItem and other WidgetWorker. I know that my >> list (including the precious menu link) could be find in the >> renderSimpleMenuString but all is stored in a Appendable variable >> (called writer) that I don't know how to use... >> Impossible for me to extract the link from the list created from menu >> location. >> >> Is anybody have a clue on how to extract the link (not only the URI, the >> complete link). >> >> I continue to dig so, if I finally found something, l'll send the >> solution or the give up message here. >> >> Thanks in advance for your help, >> >> Julien. >> >> >> |
If you could provide a simple example using the current applications,
that would help me understand what you are trying to do. Adrian Crum Sandglass Software www.sandglass-software.com On 10/14/2015 6:52 AM, Julien NICOLAS wrote: > Thanks for the fast answer Adrian. > > The main menu is the Application level menu, but my goal is to get the > second level menu. In the 13.07, there is no freemarker file for this > level. It's a java renderer file for this level and the other lower one. > > > > Le 14/10/2015 15:08, Adrian Crum a écrit : >> Try looking in the header FreeMarker templates. They call a static >> Java method to get information for the main navigation. There is no >> menu widget for main navigation. >> >> Adrian Crum >> Sandglass Software >> www.sandglass-software.com >> >> On 10/14/2015 5:55 AM, Julien NICOLAS wrote: >>> Hi, >>> >>> I'm fighting with the 13.07 to get the 2nd level menu list. >>> I want to make a summary menu that show menu for all applications. This >>> is a pity that it's a nightmare to get the link from a component that is >>> not the current one. >>> >>> I'm lost in the ModelMenuItem and other WidgetWorker. I know that my >>> list (including the precious menu link) could be find in the >>> renderSimpleMenuString but all is stored in a Appendable variable >>> (called writer) that I don't know how to use... >>> Impossible for me to extract the link from the list created from menu >>> location. >>> >>> Is anybody have a clue on how to extract the link (not only the URI, the >>> complete link). >>> >>> I continue to dig so, if I finally found something, l'll send the >>> solution or the give up message here. >>> >>> Thanks in advance for your help, >>> >>> Julien. >>> >>> >>> > |
I want to provide a home menu for the solution like this
https://flic.kr/p/yPFAHq In the dark blue, the application menu, then in the same line the 2nd level menu linked to the application. If you clic on the application, you are redirect to the application main screen (like the application menu), if you clic on the 2nd level link, you are redirect to the application on the specific screen selected. Seems quite simple to do, but a nightmare for real :'( Julien. Le 14/10/2015 16:10, Adrian Crum a écrit : > If you could provide a simple example using the current applications, > that would help me understand what you are trying to do. > > Adrian Crum > Sandglass Software > www.sandglass-software.com > > On 10/14/2015 6:52 AM, Julien NICOLAS wrote: >> Thanks for the fast answer Adrian. >> >> The main menu is the Application level menu, but my goal is to get the >> second level menu. In the 13.07, there is no freemarker file for this >> level. It's a java renderer file for this level and the other lower one. >> >> >> >> Le 14/10/2015 15:08, Adrian Crum a écrit : >>> Try looking in the header FreeMarker templates. They call a static >>> Java method to get information for the main navigation. There is no >>> menu widget for main navigation. >>> >>> Adrian Crum >>> Sandglass Software >>> www.sandglass-software.com >>> >>> On 10/14/2015 5:55 AM, Julien NICOLAS wrote: >>>> Hi, >>>> >>>> I'm fighting with the 13.07 to get the 2nd level menu list. >>>> I want to make a summary menu that show menu for all applications. >>>> This >>>> is a pity that it's a nightmare to get the link from a component >>>> that is >>>> not the current one. >>>> >>>> I'm lost in the ModelMenuItem and other WidgetWorker. I know that my >>>> list (including the precious menu link) could be find in the >>>> renderSimpleMenuString but all is stored in a Appendable variable >>>> (called writer) that I don't know how to use... >>>> Impossible for me to extract the link from the list created from menu >>>> location. >>>> >>>> Is anybody have a clue on how to extract the link (not only the >>>> URI, the >>>> complete link). >>>> >>>> I continue to dig so, if I finally found something, l'll send the >>>> solution or the give up message here. >>>> >>>> Thanks in advance for your help, >>>> >>>> Julien. >>>> >>>> >>>> >> |
I was the idea to use the <@OfbizUrl> because it's easy to have the
target in the item menu list. Problem is that the <@OfbizUrl> is design to be used in the current application. Maybe I'm wrong. If somebody know how to set the component linked to the target, it will be 5 min to solve this issue :) I continue to dig... Le 14/10/2015 16:39, Julien NICOLAS a écrit : > I want to provide a home menu for the solution like this > https://flic.kr/p/yPFAHq > > In the dark blue, the application menu, then in the same line the 2nd > level menu linked to the application. > > If you clic on the application, you are redirect to the application > main screen (like the application menu), if you clic on the 2nd level > link, you are redirect to the application on the specific screen > selected. > > Seems quite simple to do, but a nightmare for real :'( > > Julien. > > > > Le 14/10/2015 16:10, Adrian Crum a écrit : >> If you could provide a simple example using the current applications, >> that would help me understand what you are trying to do. >> >> Adrian Crum >> Sandglass Software >> www.sandglass-software.com >> >> On 10/14/2015 6:52 AM, Julien NICOLAS wrote: >>> Thanks for the fast answer Adrian. >>> >>> The main menu is the Application level menu, but my goal is to get the >>> second level menu. In the 13.07, there is no freemarker file for this >>> level. It's a java renderer file for this level and the other lower >>> one. >>> >>> >>> >>> Le 14/10/2015 15:08, Adrian Crum a écrit : >>>> Try looking in the header FreeMarker templates. They call a static >>>> Java method to get information for the main navigation. There is no >>>> menu widget for main navigation. >>>> >>>> Adrian Crum >>>> Sandglass Software >>>> www.sandglass-software.com >>>> >>>> On 10/14/2015 5:55 AM, Julien NICOLAS wrote: >>>>> Hi, >>>>> >>>>> I'm fighting with the 13.07 to get the 2nd level menu list. >>>>> I want to make a summary menu that show menu for all applications. >>>>> This >>>>> is a pity that it's a nightmare to get the link from a component >>>>> that is >>>>> not the current one. >>>>> >>>>> I'm lost in the ModelMenuItem and other WidgetWorker. I know that my >>>>> list (including the precious menu link) could be find in the >>>>> renderSimpleMenuString but all is stored in a Appendable variable >>>>> (called writer) that I don't know how to use... >>>>> Impossible for me to extract the link from the list created from menu >>>>> location. >>>>> >>>>> Is anybody have a clue on how to extract the link (not only the >>>>> URI, the >>>>> complete link). >>>>> >>>>> I continue to dig so, if I finally found something, l'll send the >>>>> solution or the give up message here. >>>>> >>>>> Thanks in advance for your help, >>>>> >>>>> Julien. >>>>> >>>>> >>>>> >>> > |
In reply to this post by JulienNicolas
Maybe you could try looking through the Tomahawk and Bizzness Time
themes. They do what you describe. Adrian Crum Sandglass Software www.sandglass-software.com On 10/14/2015 7:39 AM, Julien NICOLAS wrote: > I want to provide a home menu for the solution like this > https://flic.kr/p/yPFAHq > > In the dark blue, the application menu, then in the same line the 2nd > level menu linked to the application. > > If you clic on the application, you are redirect to the application main > screen (like the application menu), if you clic on the 2nd level link, > you are redirect to the application on the specific screen selected. > > Seems quite simple to do, but a nightmare for real :'( > > Julien. > > > > Le 14/10/2015 16:10, Adrian Crum a écrit : >> If you could provide a simple example using the current applications, >> that would help me understand what you are trying to do. >> >> Adrian Crum >> Sandglass Software >> www.sandglass-software.com >> >> On 10/14/2015 6:52 AM, Julien NICOLAS wrote: >>> Thanks for the fast answer Adrian. >>> >>> The main menu is the Application level menu, but my goal is to get the >>> second level menu. In the 13.07, there is no freemarker file for this >>> level. It's a java renderer file for this level and the other lower one. >>> >>> >>> >>> Le 14/10/2015 15:08, Adrian Crum a écrit : >>>> Try looking in the header FreeMarker templates. They call a static >>>> Java method to get information for the main navigation. There is no >>>> menu widget for main navigation. >>>> >>>> Adrian Crum >>>> Sandglass Software >>>> www.sandglass-software.com >>>> >>>> On 10/14/2015 5:55 AM, Julien NICOLAS wrote: >>>>> Hi, >>>>> >>>>> I'm fighting with the 13.07 to get the 2nd level menu list. >>>>> I want to make a summary menu that show menu for all applications. >>>>> This >>>>> is a pity that it's a nightmare to get the link from a component >>>>> that is >>>>> not the current one. >>>>> >>>>> I'm lost in the ModelMenuItem and other WidgetWorker. I know that my >>>>> list (including the precious menu link) could be find in the >>>>> renderSimpleMenuString but all is stored in a Appendable variable >>>>> (called writer) that I don't know how to use... >>>>> Impossible for me to extract the link from the list created from menu >>>>> location. >>>>> >>>>> Is anybody have a clue on how to extract the link (not only the >>>>> URI, the >>>>> complete link). >>>>> >>>>> I continue to dig so, if I finally found something, l'll send the >>>>> solution or the give up message here. >>>>> >>>>> Thanks in advance for your help, >>>>> >>>>> Julien. >>>>> >>>>> >>>>> >>> > |
No they don't... It's always the 1st level (application) that is made by
ftl. But maybe a summary screen exist but I never found it. Perhaps I'm on a track, I continue in this way and if it work, I'll share it. Anyway, thank you for your help Adrian :) Julien. Le 14/10/2015 17:56, Adrian Crum a écrit : > Maybe you could try looking through the Tomahawk and Bizzness Time > themes. They do what you describe. > > Adrian Crum > Sandglass Software > www.sandglass-software.com > > On 10/14/2015 7:39 AM, Julien NICOLAS wrote: >> I want to provide a home menu for the solution like this >> https://flic.kr/p/yPFAHq >> >> In the dark blue, the application menu, then in the same line the 2nd >> level menu linked to the application. >> >> If you clic on the application, you are redirect to the application main >> screen (like the application menu), if you clic on the 2nd level link, >> you are redirect to the application on the specific screen selected. >> >> Seems quite simple to do, but a nightmare for real :'( >> >> Julien. >> >> >> >> Le 14/10/2015 16:10, Adrian Crum a écrit : >>> If you could provide a simple example using the current applications, >>> that would help me understand what you are trying to do. >>> >>> Adrian Crum >>> Sandglass Software >>> www.sandglass-software.com >>> >>> On 10/14/2015 6:52 AM, Julien NICOLAS wrote: >>>> Thanks for the fast answer Adrian. >>>> >>>> The main menu is the Application level menu, but my goal is to get the >>>> second level menu. In the 13.07, there is no freemarker file for this >>>> level. It's a java renderer file for this level and the other lower >>>> one. >>>> >>>> >>>> >>>> Le 14/10/2015 15:08, Adrian Crum a écrit : >>>>> Try looking in the header FreeMarker templates. They call a static >>>>> Java method to get information for the main navigation. There is no >>>>> menu widget for main navigation. >>>>> >>>>> Adrian Crum >>>>> Sandglass Software >>>>> www.sandglass-software.com >>>>> >>>>> On 10/14/2015 5:55 AM, Julien NICOLAS wrote: >>>>>> Hi, >>>>>> >>>>>> I'm fighting with the 13.07 to get the 2nd level menu list. >>>>>> I want to make a summary menu that show menu for all applications. >>>>>> This >>>>>> is a pity that it's a nightmare to get the link from a component >>>>>> that is >>>>>> not the current one. >>>>>> >>>>>> I'm lost in the ModelMenuItem and other WidgetWorker. I know that my >>>>>> list (including the precious menu link) could be find in the >>>>>> renderSimpleMenuString but all is stored in a Appendable variable >>>>>> (called writer) that I don't know how to use... >>>>>> Impossible for me to extract the link from the list created from >>>>>> menu >>>>>> location. >>>>>> >>>>>> Is anybody have a clue on how to extract the link (not only the >>>>>> URI, the >>>>>> complete link). >>>>>> >>>>>> I continue to dig so, if I finally found something, l'll send the >>>>>> solution or the give up message here. >>>>>> >>>>>> Thanks in advance for your help, >>>>>> >>>>>> Julien. >>>>>> >>>>>> >>>>>> >>>> >> |
So, I try to create my second level list in a groovy script.
Unfortunately, it keep the current component in the uri... so it seems impossible to do in this way... import org.apache.commons.lang.StringEscapeUtils import org.ofbiz.base.component.* import org.ofbiz.base.util.UtilHttp import org.ofbiz.base.util.UtilValidate import org.ofbiz.webapp.control.RequestHandler import org.ofbiz.widget.menu.* ; import org.ofbiz.widget.menu.ModelMenuItem import javax.servlet.ServletContext import javax.servlet.http.HttpServletRequest import javax.servlet.http.HttpServletResponse; String ofbizServerName = application.getAttribute("_serverId") if (ofbizServerName.isEmpty()) { ofbizServerName ="default-server" ; } List<ComponentConfig.WebappInfo> displayApps = ComponentConfig.getAppBarWebInfos(ofbizServerName,"main") ; displayMainItems = MenuFactory.getMenuFromLocation("component://order/widget/ordermgr/OrderMenus.xml","OrderAppBar") HttpServletRequest request = (HttpServletRequest) context.get("request"); HttpServletResponse response = (HttpServletResponse) context.get("response"); for (ModelMenuItem item : displayMainItems.getMenuItemList()) { link = item.getLink(); if(UtilValidate.isNotEmpty(link)) { String localRequestName = StringEscapeUtils.unescapeHtml(link.getTarget(context)); localRequestName = UtilHttp.encodeAmpersands(localRequestName); ServletContext servletContext = request.getSession().getServletContext(); RequestHandler rh = (RequestHandler) servletContext.getAttribute("_REQUEST_HANDLER_"); linkUrl = rh.makeLink(request, response,"/" + localRequestName, link.getFullPath(), link.getSecure(), link.getEncode()); } } Le 14/10/2015 18:27, Julien NICOLAS a écrit : > No they don't... It's always the 1st level (application) that is made > by ftl. > > But maybe a summary screen exist but I never found it. > > Perhaps I'm on a track, I continue in this way and if it work, I'll > share it. > > Anyway, thank you for your help Adrian :) > > Julien. > > > Le 14/10/2015 17:56, Adrian Crum a écrit : >> Maybe you could try looking through the Tomahawk and Bizzness Time >> themes. They do what you describe. >> >> Adrian Crum >> Sandglass Software >> www.sandglass-software.com >> >> On 10/14/2015 7:39 AM, Julien NICOLAS wrote: >>> I want to provide a home menu for the solution like this >>> https://flic.kr/p/yPFAHq >>> >>> In the dark blue, the application menu, then in the same line the 2nd >>> level menu linked to the application. >>> >>> If you clic on the application, you are redirect to the application >>> main >>> screen (like the application menu), if you clic on the 2nd level link, >>> you are redirect to the application on the specific screen selected. >>> >>> Seems quite simple to do, but a nightmare for real :'( >>> >>> Julien. >>> >>> >>> >>> Le 14/10/2015 16:10, Adrian Crum a écrit : >>>> If you could provide a simple example using the current applications, >>>> that would help me understand what you are trying to do. >>>> >>>> Adrian Crum >>>> Sandglass Software >>>> www.sandglass-software.com >>>> >>>> On 10/14/2015 6:52 AM, Julien NICOLAS wrote: >>>>> Thanks for the fast answer Adrian. >>>>> >>>>> The main menu is the Application level menu, but my goal is to get >>>>> the >>>>> second level menu. In the 13.07, there is no freemarker file for this >>>>> level. It's a java renderer file for this level and the other >>>>> lower one. >>>>> >>>>> >>>>> >>>>> Le 14/10/2015 15:08, Adrian Crum a écrit : >>>>>> Try looking in the header FreeMarker templates. They call a static >>>>>> Java method to get information for the main navigation. There is no >>>>>> menu widget for main navigation. >>>>>> >>>>>> Adrian Crum >>>>>> Sandglass Software >>>>>> www.sandglass-software.com >>>>>> >>>>>> On 10/14/2015 5:55 AM, Julien NICOLAS wrote: >>>>>>> Hi, >>>>>>> >>>>>>> I'm fighting with the 13.07 to get the 2nd level menu list. >>>>>>> I want to make a summary menu that show menu for all applications. >>>>>>> This >>>>>>> is a pity that it's a nightmare to get the link from a component >>>>>>> that is >>>>>>> not the current one. >>>>>>> >>>>>>> I'm lost in the ModelMenuItem and other WidgetWorker. I know >>>>>>> that my >>>>>>> list (including the precious menu link) could be find in the >>>>>>> renderSimpleMenuString but all is stored in a Appendable variable >>>>>>> (called writer) that I don't know how to use... >>>>>>> Impossible for me to extract the link from the list created from >>>>>>> menu >>>>>>> location. >>>>>>> >>>>>>> Is anybody have a clue on how to extract the link (not only the >>>>>>> URI, the >>>>>>> complete link). >>>>>>> >>>>>>> I continue to dig so, if I finally found something, l'll send the >>>>>>> solution or the give up message here. >>>>>>> >>>>>>> Thanks in advance for your help, >>>>>>> >>>>>>> Julien. >>>>>>> >>>>>>> >>>>>>> >>>>> >>> > |
CONTENTS DELETED
The author has deleted this message.
|
Hello Barou,
Time is running fast and I think I'll do a dirty one... But if you want it so, no problem :) Julien. Le 15/10/2015 08:30, Barou a écrit : > JulienNicolas if you get a solution please I will like to know how you have > solved the problem. > > > > > -- > View this message in context: http://ofbiz.135035.n4.nabble.com/Get-the-menu-list-from-component-tp4673372p4673399.html > Sent from the OFBiz - User mailing list archive at Nabble.com. |
CONTENTS DELETED
The author has deleted this message.
|
Hi,
So I have a dirty source code for you \o/ It works for me so I think it will works for you too. I'm not proud of that but it's not as worst as I was thinking ;) I automated all I can, just the URL of the target that I create manually and also the component menu location and name... if somebody want to comment, don't hesitate ! Following the groovy script you have to put in the screen definition. /** * Created by julien on 12/10/15. */ import javolution.util.FastList import org.ofbiz.base.component.* import org.ofbiz.base.util.UtilValidate import org.ofbiz.widget.PortalPageWorker import org.ofbiz.widget.menu.* ; import org.ofbiz.widget.menu.ModelMenuItem String ofbizServerName = application.getAttribute("_serverId") if (ofbizServerName.isEmpty()) { ofbizServerName ="default-server" ; } List<ComponentConfig.WebappInfo> displayApps = ComponentConfig.getAppBarWebInfos(ofbizServerName,"main") ; componentList = FastList.newInstance() ; HashMap<String, Object> itemMenu; for (ComponentConfig.WebappInfo currentComponent : displayApps) { componentPermission =true ; componentPermissions = currentComponent.getBasePermission() ; for (String permission : componentPermissions) { if( !permission.equals("NONE") && !security.hasEntityPermission(permission,"_VIEW", session)){ componentPermission =false ; } } if (!componentPermission) { continue; } mainMenu = FastList.newInstance() ; if (currentComponent.name =="order") { componentMenuLocation ="component://order/widget/ordermgr/OrderMenus.xml" ; componentMenuName ="OrderAppBar" ; } if (currentComponent.name =="party") { componentMenuLocation ="component://party/widget/partymgr/PartyMenus.xml" ; componentMenuName ="PartyAppBar" ; } if (currentComponent.name =="ar") { componentMenuLocation ="component://accounting/widget/ar/ArMenus.xml" ; componentMenuName ="ArAppBar" ; } if (currentComponent.name =="ap") { componentMenuLocation ="component://accounting/widget/ap/ApMenus.xml" ; componentMenuName ="ApAppBar" ; } if (currentComponent.name =="billing") { componentMenuLocation ="component://accounting/widget/AccountingMenus.xml" ; componentMenuName ="menuAccounting" ; } if (currentComponent.name =="catalog") { componentMenuLocation ="component://product/widget/catalog/CatalogMenus.xml" ; componentMenuName ="CatalogAppBar" ; } if (currentComponent.name =="facility") { componentMenuLocation ="component://product/widget/facility/FacilityMenus.xml" ; componentMenuName ="FacilityAppBar" ; } if (currentComponent.name =="humanres") { componentMenuLocation ="component://humanres/widget/HumanresMenus.xml" ; componentMenuName ="menuHumanRes" ; } if (currentComponent.name =="marketing") { componentMenuLocation ="component://marketing/widget/MarketingMenus.xml" ; componentMenuName ="MarketingAppBar" ; } displayMainItems = MenuFactory.getMenuFromLocation(componentMenuLocation, componentMenuName) ; componentMountPoint = currentComponent.mountPoint.replace('*','') ; componentTitle = currentComponent.getTitle(); componentDescription = currentComponent.getDescription(); componentInfo =new HashMap<String, Object>() ; componentInfo.put("type","Component"); componentInfo.put("title",componentTitle); componentInfo.put("description",componentDescription); componentInfo.put("mountPoint",componentMountPoint); componentInfo.put("basePermission", currentComponent.getBasePermission()) ; mainMenu.add(componentInfo) ; for (ModelMenuItem item : displayMainItems.getMenuItemList()) { itemMenu =new HashMap<String, Object>(); if(UtilValidate.isEmpty(item.getLink())) { portalPageId = item.parentPortalPageId.toString(); portalPage = PortalPageWorker.getPortalPage(portalPageId, context) ; currentTarget ="showPortalPage?portalPageId="+portalPageId+"&parentPortalPageId="+portalPageId ; menuTitle = portalPage.getString("portalPageName"); }else{ currentTarget = item.getLink().targetExdr ; menuTitle = item.title; } itemMenu.put("type","ItemMenu"); itemMenu.put("menuTitle", menuTitle); itemMenu.put("urlLink", componentMountPoint+"control/"+currentTarget); mainMenu.add(itemMenu); } componentList.add(mainMenu) ; } context.put("componentList",componentList); And the ftl file you need to show the menu list for all applications <#assign isComponentEmpty=true> <#list componentListas mainMenu > <#list mainMenuas itemMenu > <#if itemMenu.type=="Component"> <ul class="hp-applist"> <div class="app-title"><span><a href="${itemMenu.mountPoint}control/main"<#if uiLabelMap?exists > title="${uiLabelMap[itemMenu.description]}">${uiLabelMap[itemMenu.title]}<#else> title="${itemMenu.description}">${itemMenu.title}</#if></a></span></div> <#else> <#assign isComponentEmpty=false> <#assign menuTitle = Static["org.ofbiz.base.util.string.FlexibleStringExpander"].expandString(itemMenu.menuTitle, context)/> <li class="hp-menu-item normalItem"> <a href="${itemMenu.urlLink}" class="menu-link" title="${itemMenu.menuTitle}">${menuTitle}</a> <a href="javascript:addReplaceFavorites(this)" title="${uiLabelMap.ClicToAddInFavorite}"> <img class="star-link" src="/embisphere-theme/images/star-yellow.svg"> </a> </li> </#if> </#list> <#if !isComponentEmpty > </ul> <#assign isComponentEmpty=true> </#if> </#list> Don't forget to put all the uiLabel for all the component in the screen definition. <property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="OrderErrorUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="ManufacturingUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="WorkEffortUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="PartyUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="HumanResUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="MarketingUiLabels" map-name="uiLabelMap" global="true"/> Regards, Julien. Le 15/10/2015 10:05, Barou a écrit : > Hi Julien > I am very much interested I am new to ofbiz. > please share it with me > > > > -- > View this message in context: http://ofbiz.135035.n4.nabble.com/Get-the-menu-list-from-component-tp4673372p4673406.html > Sent from the OFBiz - User mailing list archive at Nabble.com. |
Free forum by Nabble | Edit this page |