Felix Röthenbacher wrote:

[...]

IMO the fallback should be used in the module's menus.xmap, when the XSP
is loaded. We shouldn't add XSP locations to the contract.

WDYT?


+1

Then I would suggest to fallback enable the menus.xmap:

Index: src/webapp/global-sitemap.xmap
===================================================================
--- src/webapp/global-sitemap.xmap      (revision 344071)
+++ src/webapp/global-sitemap.xmap      (working copy)
@@ -241,8 +241,8 @@
<map:generate type="serverpages" src="fallback://config/menus/{2}.xsp"/>
             <map:serialize type="xml"/>
           </map:when>
-          <map:when test="lenya/modules/{2}/menus.xmap">
- <map:mount uri-prefix="menu-xml/module/{1}/" src="lenya/modules/{2}/menus.xmap" check-reload="true" reload-method="synchron"/>
+          <map:when test="fallback://lenya/modules/{2}/menus.xmap">
+ <map:mount uri-prefix="menu-xml/module/{1}/" src="fallback://lenya/modules/{2}/menus.xmap" check-reload="true" reload-method="synchron"/>

Yes, that is probably the cleanest and most flexible solution.

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to