You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2003/06/11 17:25:11 UTC
cvs commit: cocoon-lenya/src/webapp/lenya admin.xmap
gregor 2003/06/11 08:25:11
Modified: src/webapp/lenya admin.xmap
Added: src/webapp/lenya/xslt/admin root.xsl
src/webapp/lenya/content/menus admin.xsp
Log:
added menu to admin area
Revision Changes Path
1.1 cocoon-lenya/src/webapp/lenya/xslt/admin/root.xsl
Index: root.xsl
===================================================================
<?xml version="1.0"?>
<!--
$Id: root.xsl,v 1.1 2003/06/11 15:25:10 gregor Exp $
-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
<xsl:include href="../menu/root.xsl"/>
<xsl:template match="lenya/cmsbody">
<xsl:apply-templates />
</xsl:template>
</xsl:stylesheet>
1.1 cocoon-lenya/src/webapp/lenya/content/menus/admin.xsp
Index: admin.xsp
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsp:page
language="java"
xmlns:xsp="http://apache.org/xsp"
xmlns:xsp-request="http://apache.org/xsp/request/2.0"
xmlns:input="http://apache.org/cocoon/xsp/input/1.0"
>
<xsp:structure>
<xsp:include>org.apache.lenya.cms.publication.Publication</xsp:include>
<xsp:include>org.apache.lenya.cms.publication.PublicationFactory</xsp:include>
</xsp:structure>
<menu>
<xsp:logic>
Publication publication = PublicationFactory.getPublication(objectModel);
</xsp:logic>
<url-info>
<context-prefix><xsp-request:get-context-path/></context-prefix>
<publication-id><input:get-attribute module="page-envelope" as="string" name="publication-id"/></publication-id>
<area><input:get-attribute module="page-envelope" as="string" name="area"/></area>
<document-id><input:get-attribute module="page-envelope" as="string" name="document-id"/></document-id>
<servlet-context-path><xsp:expr>publication.getServletContext().getCanonicalPath()</xsp:expr></servlet-context-path>
<publication><input:get-attribute module="page-envelope" as="object" name="publication"/></publication>
</url-info>
<xsp:logic>
String projectid = parameters.getParameter("projectid","null");
</xsp:logic>
<live_uri>/live</live_uri>
<menus>
<menu name="File" label="File">
<block>
<item>Passwd</item>
<item>Switch User</item>
<item><xsp:attribute name="href"><xsp-request:get-servlet-path/><xsp-request:get-context-path/>/logout</xsp:attribute>Logout</item>
</block>
</menu>
<menu name="Edit" label="Search">
<block>
<item><xsp:attribute name="href"><xsp-request:get-uri/>?lenya.usecase=cut&lenya.step=showscreen</xsp:attribute>Cut</item>
<item><xsp:attribute name="href"><xsp-request:get-uri/>?lenya.usecase=copy&lenya.step=showscreen</xsp:attribute>Copy</item>
<item><xsp:attribute name="href"><xsp-request:get-uri/>?lenya.usecase=paste&lenya.step=showscreen</xsp:attribute>Paste</item>
</block>
<block>
<item><xsp:attribute name="href"><xsp-request:get-uri/>?lenya.usecase=rename&lenya.step=showscreen</xsp:attribute>Rename</item>
<item><xsp:attribute name="href"><xsp-request:get-uri/>?lenya.usecase=move-up&lenya.step=showscreen</xsp:attribute>Move Up</item>
<item><xsp:attribute name="href"><xsp-request:get-uri/>?lenya.usecase=move-down&lenya.step=showscreen</xsp:attribute>Move Down</item>
<item><xsp:attribute name="href"><xsp-request:get-uri/>?lenya.usecase=add-child&lenya.step=showscreen</xsp:attribute>Add Child Element</item>
<item><xsp:attribute name="href"><xsp-request:get-uri/>?lenya.usecase=add-sibling&lenya.step=showscreen</xsp:attribute>Insert New Document</item>
</block>
</menu>
<menu name="Workflow" label="Help">
<block>
<item><xsp:attribute name="href"><xsp-request:get-uri/>?lenya.usecase=publish&lenya.step=showscreen</xsp:attribute>Publish</item>
<item><xsp:attribute name="href"><xsp-request:get-uri/>?lenya.usecase=delete&lenya.step=showscreen</xsp:attribute>Delete</item>
<item><xsp:attribute name="href"><xsp-request:get-uri/>?lenya.usecase=archive&lenya.step=showscreen</xsp:attribute>Archive</item>
<item><xsp:attribute name="href"><xsp-request:get-uri/>?lenya.usecase=approval-submit&lenya.step=showscreen</xsp:attribute>Submit for Approval</item>
<item><xsp:attribute name="href"><xsp-request:get-uri/>?lenya.usecase=approval-reject&lenya.step=showscreen</xsp:attribute>Reject</item>
<item><xsp:attribute name="href"><xsp-request:get-uri/>?lenya.usecase=deactivate&lenya.step=showscreen</xsp:attribute>Deactivate</item>
</block>
</menu>
<menu name="Debug" label="Debug">
<block>
<item>..</item>
</block>
</menu>
</menus>
</menu>
</xsp:page>
1.2 +16 -1 cocoon-lenya/src/webapp/lenya/admin.xmap
Index: admin.xmap
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/admin.xmap,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- admin.xmap 19 Apr 2003 23:44:50 -0000 1.1
+++ admin.xmap 11 Jun 2003 15:25:10 -0000 1.2
@@ -17,6 +17,14 @@
</map:flow>
<map:pipelines>
+ <!-- Menus -->
+ <map:pipeline>
+ <map:match pattern="menus/admin.xml">
+ <map:generate type="serverpages" src="content/menus/admin.xsp"/>
+ <map:serialize type="xml"/>
+ </map:match>
+ </map:pipeline>
+
<map:pipeline>
<map:match pattern="passwd/continuation-*">
<map:call continuation="{1}"/>
@@ -33,8 +41,15 @@
<map:pipeline>
<map:match pattern="**">
- <map:read src="resources/html/index.html"/>
+ <map:aggregate element="lenya" label="aggregate">
+ <map:part src="cocoon:/menus/admin.xml"/>
+ <map:part element="cmsbody" src="resources/html/index.html"/>
+ </map:aggregate>
+ <map:transform src="xslt/admin/root.xsl" label="content" />
+ <map:serialize type="html"/>
</map:match>
</map:pipeline>
+
+
</map:pipelines>
</map:sitemap>
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org