This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 4d88b559e Improved: MyPortal - fix PortalPagePortlet menu location 
(OFBIZ-12972) (#102)
4d88b559e is described below

commit 4d88b559ec76926a844a523b6c6f827af740dc56
Author: Pierre Smits <pierre.sm...@somonar.com>
AuthorDate: Thu Apr 11 15:00:25 2024 +0200

    Improved: MyPortal - fix PortalPagePortlet menu location (OFBIZ-12972) 
(#102)
    
    Various PortalPagePortlets refer to screens in other components having 
embedded menus. In the originating component these menus have a parameterized 
menu location 'mainMenuLocation'.
    This does not work when a portal page is shown in a different component 
c.q. application as mainMenuLocation then refers to the mainMenuLocation of 
that component c.q. application.
    
    modified: web.xml
    - add context-param for communicationMenuLocation, requestMenuLocation
---
 myportal/webapp/myportal/WEB-INF/web.xml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/myportal/webapp/myportal/WEB-INF/web.xml 
b/myportal/webapp/myportal/WEB-INF/web.xml
index ac0810638..6eb1b4b64 100644
--- a/myportal/webapp/myportal/WEB-INF/web.xml
+++ b/myportal/webapp/myportal/WEB-INF/web.xml
@@ -48,6 +48,16 @@
         <param-name>calendarMenuLocation</param-name>
         
<param-value>component://workeffort/widget/WorkEffortMenus.xml</param-value>
     </context-param>
+    <context-param>
+        <description>The location of the communications menus file to be used 
in this webapp; referred to as a context variable in screen def XML 
files.</description>
+        <param-name>communicationMenuLocation</param-name>
+        
<param-value>component://party/widget/partymgr/PartyMenus.xml</param-value>
+    </context-param>
+    <context-param>
+        <description>The location of the request menus file to be used in this 
webapp; referred to as a context variable in screen def XML files.</description>
+        <param-name>requestMenuLocation</param-name>
+        
<param-value>component://order/widget/ordermgr/OrderMenus.xml</param-value>
+    </context-param>
 
     <filter>
         <display-name>ControlFilter</display-name>

Reply via email to