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 8d86192e6 Improved: MyPortal - move from hard-coded menu location to 
parameterized (OFBIZ-12969) (#101)
8d86192e6 is described below

commit 8d86192e6aaa3e66804e1f7133ddcaf3359fac60
Author: Pierre Smits <pierre.sm...@somonar.com>
AuthorDate: Thu Mar 28 12:03:31 2024 +0100

    Improved: MyPortal - move from hard-coded menu location to parameterized 
(OFBIZ-12969) (#101)
    
    * Improved: MyPortal - Move from hard-coded menu location to parameterized 
(OFBIZ-12969)
    
    Move the menu location in the various my portal screens from hard-coded to 
parameterized.
    
    modified:
    PortalAdmScreens.xml
    
    * Improved: MyPortal - Move from hard-coded menu location to parameterized 
(OFBIZ-12969)
    
    Move the menu location in the various my portal screens from hard-coded to 
parameterized.
    
    modified:
    - web.xml: add calendarMenuLocation (in workeffort)
---
 myportal/webapp/myportal/WEB-INF/web.xml | 5 +++++
 myportal/widget/PortalAdmScreens.xml     | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/myportal/webapp/myportal/WEB-INF/web.xml 
b/myportal/webapp/myportal/WEB-INF/web.xml
index 4e909363a..ac0810638 100644
--- a/myportal/webapp/myportal/WEB-INF/web.xml
+++ b/myportal/webapp/myportal/WEB-INF/web.xml
@@ -43,6 +43,11 @@
         <param-name>mainMenuLocation</param-name>
         
<param-value>component://myportal/widget/MyPortalMenus.xml</param-value>
     </context-param>
+    <context-param>
+        <description>The location of the calendar menus file to be used in 
this webapp; referred to as a context variable in screen def XML 
files.</description>
+        <param-name>calendarMenuLocation</param-name>
+        
<param-value>component://workeffort/widget/WorkEffortMenus.xml</param-value>
+    </context-param>
 
     <filter>
         <display-name>ControlFilter</display-name>
diff --git a/myportal/widget/PortalAdmScreens.xml 
b/myportal/widget/PortalAdmScreens.xml
index 7bbd54f42..d1426ccb1 100644
--- a/myportal/widget/PortalAdmScreens.xml
+++ b/myportal/widget/PortalAdmScreens.xml
@@ -95,7 +95,7 @@ under the License.
                             <actions><set field="targetPortalPage" 
value="updatePortalPageAdm"/></actions>
                             <widgets>
                                 <screenlet 
title="${uiLabelMap.CommonPortalEditPage}" 
navigation-menu-name="PortalPageAdmin">
-                                    <include-menu name="PortalPageAdmin" 
location="component:/myportal/widget/MyPortalMenus.xml"/>
+                                    <include-menu name="PortalPageAdmin" 
location="${parameters.mainMenuLocation}"/>
                                     <include-form name="EditPortalPage" 
location="component://myportal/widget/PortalAdmForms.xml"/>
                                 </screenlet>
                             </widgets>

Reply via email to