You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ch...@apache.org on 2006/02/08 19:34:09 UTC
svn commit: r376020 - /lenya/trunk/src/webapp/global-sitemap.xmap
Author: chestnut
Date: Wed Feb 8 10:34:06 2006
New Revision: 376020
URL: http://svn.apache.org/viewcvs?rev=376020&view=rev
Log:
added ablity to call module resources while specifying the publication id
Now module resources and sitemap can be referenced via:
http://localhost:8888/modules/{module-id}/...
or
http://localhost:8888/{publication-id}/modules/{module-id}/...
Both will return the same thing if accessed as an internal request.
For external requests the first will always return core resources, while the second
will be able to utilize the fallback capability of module-resources.xmap or {module-id}/sitemap.xmap.
Modified:
lenya/trunk/src/webapp/global-sitemap.xmap
Modified: lenya/trunk/src/webapp/global-sitemap.xmap
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/global-sitemap.xmap?rev=376020&r1=376019&r2=376020&view=diff
==============================================================================
--- lenya/trunk/src/webapp/global-sitemap.xmap (original)
+++ lenya/trunk/src/webapp/global-sitemap.xmap Wed Feb 8 10:34:06 2006
@@ -280,6 +280,22 @@
<map:mount uri-prefix="modules/{1}/" src="lenya/modules/{1}/sitemap.xmap" check-reload="true" reload-method="synchron"/>
</map:match>
+
+ <!-- Publication specific Module requests -->
+ <!-- {publication-id}/mdoules/{module-id}/... -->
+ <map:match pattern="*/modules/*/**">
+
+ <map:select type="resource-exists">
+ <!-- resource exists - serve statically -->
+ <map:when test="lenya/modules/{2}/resources/{3}">
+ <map:mount uri-prefix="{1}/modules/" src="lenya/module-resources.xmap" check-reload="true" reload-method="synchron" pass-through="true"/>
+ </map:when>
+ </map:select>
+
+ <!-- resource doesn't exist or not handled by lenya/module-resources.xmap - delegate to module -->
+ <map:mount uri-prefix="{1}/modules/{2}/" src="lenya/modules/{2}/sitemap.xmap" check-reload="true" reload-method="synchron"/>
+
+ </map:match>
</map:pipeline>
<!-- Internal usecases -->
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org