You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2003/07/03 14:46:27 UTC
cvs commit: cocoon-lenya/src/webapp/lenya navigation.xmap
andreas 2003/07/03 05:46:27
Modified: src/webapp/lenya navigation.xmap
Log:
allowing pub-independent sitetrees (used for admin area)
Revision Changes Path
1.7 +8 -1 cocoon-lenya/src/webapp/lenya/navigation.xmap
Index: navigation.xmap
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/navigation.xmap,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- navigation.xmap 30 Apr 2003 10:20:23 -0000 1.6
+++ navigation.xmap 3 Jul 2003 12:46:27 -0000 1.7
@@ -48,7 +48,14 @@
<!-- sitetree -->
<!-- pattern: {pub-id}/{area}/sitetree/{url}.xml -->
<map:match pattern="*/*/sitetree/**.xml">
- <map:generate src="pubs/{1}/content/{2}/sitetree.xml"/>
+ <map:select type="resource-exists">
+ <map:when test="pubs/{1}/content/{2}/sitetree.xml">
+ <map:generate src="pubs/{1}/content/{2}/sitetree.xml"/>
+ </map:when>
+ <map:otherwise>
+ <map:generate src="content/{2}/sitetree.xml"/>
+ </map:otherwise>
+ </map:select>
<map:call resource="fallback-transformation">
<map:parameter name="publication-id" value="{1}"/>
<map:parameter name="url" value="{3}"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org