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 2007/04/12 15:45:55 UTC
svn commit: r527940 - in /lenya/trunk/src/modules/development:
config/menu.xsp sitemap.xmap
Author: andreas
Date: Thu Apr 12 06:45:54 2007
New Revision: 527940
URL: http://svn.apache.org/viewvc?view=rev&rev=527940
Log:
Improved show-log URL. Thanks to Joern Nettingsmeier for the suggestion.
Modified:
lenya/trunk/src/modules/development/config/menu.xsp
lenya/trunk/src/modules/development/sitemap.xmap
Modified: lenya/trunk/src/modules/development/config/menu.xsp
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/development/config/menu.xsp?view=diff&rev=527940&r1=527939&r2=527940
==============================================================================
--- lenya/trunk/src/modules/development/config/menu.xsp (original)
+++ lenya/trunk/src/modules/development/config/menu.xsp Thu Apr 12 06:45:54 2007
@@ -29,17 +29,17 @@
xmlns="http://apache.org/cocoon/lenya/menubar/1.0"
>
- <xsp:structure>
- <xsp:include>org.apache.lenya.cms.publication.Document</xsp:include>
- <xsp:include>org.apache.lenya.cms.publication.Publication</xsp:include>
- </xsp:structure>
-
<menu>
+
+ <xsp:logic>
+ String baseUrl = (String) <input:get-attribute module="request" name="contextPath"/>;
+ </xsp:logic>
<menus>
<menu i18n:attr="name" name="Help">
<block areas="site authoring">
<item href="?lenya.module=development&lenya.action=showLog">
+ <xsp:attribute name="href"><xsp:expr>baseUrl</xsp:expr>/modules/development/log4j.log</xsp:attribute>
<i18n:text>Show Log</i18n:text>
</item>
</block>
Modified: lenya/trunk/src/modules/development/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/development/sitemap.xmap?view=diff&rev=527940&r1=527939&r2=527940
==============================================================================
--- lenya/trunk/src/modules/development/sitemap.xmap (original)
+++ lenya/trunk/src/modules/development/sitemap.xmap Thu Apr 12 06:45:54 2007
@@ -23,13 +23,8 @@
<map:pipelines>
<map:pipeline>
- <map:match pattern="**">
- <map:select type="request-parameter">
- <map:parameter name="parameter-name" value="lenya.action"/>
- <map:when test="showLog">
- <map:read mime-type="text/plain" src="context://WEB-INF/logs/log4j.log"/>
- </map:when>
- </map:select>
+ <map:match pattern="log4j.log">
+ <map:read mime-type="text/plain" src="context://WEB-INF/logs/log4j.log"/>
</map:match>
</map:pipeline>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org