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 a0531e89a Improved: EbayStore-menu location to parameterized
(OFBIZ-13041) (#114)
a0531e89a is described below
commit a0531e89a027f78a12d77b92bd5598d8e53415d7
Author: Pierre Smits <[email protected]>
AuthorDate: Sun Apr 21 08:56:23 2024 +0200
Improved: EbayStore-menu location to parameterized (OFBIZ-13041) (#114)
* Improved: EbayStore-menu location to parameterized (OFBIZ-13041)
Move the various menu locations in content screens to parameterized
modified: CommonScreens.xml: change menu location
* Improved: EbayStore-menu location to parameterized (OFBIZ-13041)
Move the various menu locations in content screens to parameterized
modified: web.xml added ebayMenuLocation
---
ebaystore/webapp/ebaystore/WEB-INF/web.xml | 5 +++++
ebaystore/widget/CommonScreens.xml | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ebaystore/webapp/ebaystore/WEB-INF/web.xml
b/ebaystore/webapp/ebaystore/WEB-INF/web.xml
index bf79c14a9..2b5034846 100644
--- a/ebaystore/webapp/ebaystore/WEB-INF/web.xml
+++ b/ebaystore/webapp/ebaystore/WEB-INF/web.xml
@@ -48,6 +48,11 @@ under the License.
<param-name>mainMenuLocation</param-name>
<param-value>component://ebaystore/widget/EbayStoreMenus.xml</param-value>
</context-param>
+ <context-param>
+ <description>The location of the menus file to be used in this webapp;
referred to as a context variable in screen def XML files.</description>
+ <param-name>ebayMenuLocation</param-name>
+ <param-value>component://ebay/widget/EbayMenus.xml</param-value>
+ </context-param>
<filter>
<display-name>ControlFilter</display-name>
diff --git a/ebaystore/widget/CommonScreens.xml
b/ebaystore/widget/CommonScreens.xml
index d6b02e5a4..8f9d58f32 100644
--- a/ebaystore/widget/CommonScreens.xml
+++ b/ebaystore/widget/CommonScreens.xml
@@ -102,12 +102,12 @@
<if-has-permission permission="EBAY"
action="_VIEW"/>
</condition>
<widgets>
- <include-menu name="EbayConfigTabBar"
location="component://ebay/widget/EbayMenus.xml"/>
+ <include-menu name="EbayConfigTabBar"
location="${parameters.ebayMenuLocation}"/>
<section>
<condition><not><if-empty
field="ebayConfig"/></not>
</condition>
<widgets>
- <include-menu
name="EbayConfigSubTabBar" location="component://ebay/widget/EbayMenus.xml"/>
+ <include-menu
name="EbayConfigSubTabBar" location="${parameters.ebayMenuLocation}"/>
</widgets>
</section>
<decorator-section-include name="body"/>