lenya/src/webapp/lenya/pubs/default publication-sitemap.xmap,1.20,1.21
Christian Egli <[email protected]>
| Newsgroups | gmane.comp.cms.wyona.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /repository/lenya/src/webapp/lenya/pubs/default
In directory erbium:/tmp/cvs-serv31815/src/webapp/lenya/pubs/default
Modified Files:
publication-sitemap.xmap
Log Message:
Added pipelines for creator (using the lenya.usecase scheme from the
URI scheme standard).
Index: publication-sitemap.xmap
===================================================================
RCS file: /repository/lenya/src/webapp/lenya/pubs/default/publication-sitemap.xmap,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** publication-sitemap.xmap 7 May 2003 17:34:03 -0000 1.20
--- publication-sitemap.xmap 8 May 2003 12:38:38 -0000 1.21
***************
*** 20,23 ****
--- 20,30 ----
src="org.apache.lenya.cms.cocoon.acting.URIParametrizerAction"
logger="sitemap.action.uriparametrizer"/>
+ <map:action name="default-create"
+ src="org.apache.lenya.cms.cocoon.acting.DefaultCreatorAction"
+ logger="sitemap.action.default-create">
+ <tree-authoring href="content/authoring/sitetree.xml"/>
+ <docs href="content/authoring"/>
+ <doctypes href="config/doctypes/"/>
+ </map:action>
</map:actions>
</map:components>
***************
*** 59,63 ****
<map:redirect-to uri="publishScreen?status=failed" session="true"/>
<!--
! <map:redirect-to uri="?usecase=publish&step=showscreen" session="true"/>
-->
</map:act>
--- 66,70 ----
<map:redirect-to uri="publishScreen?status=failed" session="true"/>
<!--
! <map:redirect-to uri="?lenya.usecase=publish&lenya.step=showscreen" session="true"/>
-->
</map:act>
***************
*** 82,85 ****
--- 89,125 ----
</map:pipeline>
+ <map:pipeline>
+ <map:match type="usecase" pattern="create">
+
+ <map:match type="step" pattern="showscreen">
+ <!-- use publication-specific schema if available -->
+ <map:act type="resource-exists" src="content/authoring/create.xsp">
+ <map:generate type="serverpages" src="content/authoring/create.xsp"/>
+ <map:transform src="xslt/authoring/create.xsl"/>
+ <map:serialize />
+ </map:act>
+
+ <!-- use default schema if available -->
+ <map:generate type="serverpages" src="../../content/authoring/create.xsp"/>
+ <map:transform src="../../xslt/authoring/create.xsl"/>
+ <map:serialize />
+ </map:match>
+
+ <map:match type="step" pattern="create">
+ <map:act type="default-create">
+ <!-- if the action suceeds it returns the referer and we -->
+ <!-- simply redirect to it. -->
+ <map:redirect-to uri="{parent_uri}"/>
+ </map:act>
+ <!-- otherwise the action could not validate some of the -->
+ <!-- input and we present the upload form again -->
+ <map:generate type="serverpages" src="content/authoring/create.xsp"/>
+ <map:transform src="xslt/authoring/create.xsl"/>
+ <map:serialize />
+ </map:match>
+
+ </map:match>
+ </map:pipeline>
+
<map:pipeline>
<map:match pattern="**.html">