Author: andreas
Date: Wed Feb 6 14:03:44 2008
New Revision: 619173
URL: http://svn.apache.org/viewvc?rev=619173&view=rev
Log:
Converting resource module menu to plain XML.
Added:
lenya/trunk/src/modules/resource/config/menu.xml
- copied, changed from r619069, lenya/trunk/src/modules/resource/config/menu.xsp
Removed:
lenya/trunk/src/modules/resource/config/menu.xsp
lenya/trunk/src/modules/resource/config/menus/
Copied: lenya/trunk/src/modules/resource/config/menu.xml (from r619069, lenya/trunk/src/modules/resource/config/menu.xsp)
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/resource/config/menu.xml?p2=lenya/trunk/src/modules/resource/config/menu.xml&p1=lenya/trunk/src/modules/resource/config/menu.xsp&r1=619069&r2=619173&rev=619173&view=diff
==============================================================================
--- lenya/trunk/src/modules/resource/config/menu.xsp (original)
+++ lenya/trunk/src/modules/resource/config/menu.xml Wed Feb 6 14:03:44 2008
@@ -6,9 +6,9 @@
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -16,45 +16,24 @@
limitations under the License.
-->
-<!-- $Id:$ -->
-
-<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"
- xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
- xmlns:wf="http://apache.org/cocoon/lenya/workflow/1.0"
- xmlns:uc="http://apache.org/cocoon/lenya/usecase/1.0"
- 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>
- <menus>
- <menu i18n:attr="name" name="File">
- <block areas="site authoring" id="create">
- <item uc:usecase="resource.create" href="?doctype=resource">
- <i18n:translate>
- <i18n:text>New ... Document</i18n:text>
- <i18n:param><i18n:text>resourceType-resource</i18n:text></i18n:param>
- </i18n:translate>
- </item>
- </block>
- </menu>
- <menu i18n:attr="name" name="Edit">
- <xsp:logic>
- String doctype = <input:get-attribute module="page-envelope" as="string" name="document-type"/>;
- if ("resource".equals(doctype)) {
- <block areas="authoring">
- <item wf:event="edit" uc:usecase="resource.upload" href="?"><i18n:text>Upload File</i18n:text></item>
- </block>
- }
- </xsp:logic>
- </menu>
- </menus>
- </menu>
-</xsp:page>
+<menu xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+ xmlns:uc="http://apache.org/cocoon/lenya/usecase/1.0"
+ xmlns="http://apache.org/cocoon/lenya/menubar/1.0">
+ <menus>
+ <menu i18n:attr="name" name="File">
+ <block areas="site authoring" id="create">
+ <item uc:usecase="resource.create" href="?doctype=resource">
+ <i18n:translate>
+ <i18n:text>New ... Document</i18n:text>
+ <i18n:param><i18n:text>resourceType-resource</i18n:text></i18n:param>
+ </i18n:translate>
+ </item>
+ </block>
+ </menu>
+ <menu i18n:attr="name" name="Edit">
+ <block areas="authoring" resourceTypes="resource">
+ <item uc:usecase="resource.upload" href="?"><i18n:text>Upload File</i18n:text></item>
+ </block>
+ </menu>
+ </menus>
+</menu>
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.