Thanks for th answer but have you got a way to implement it ???
I try to do the same as the add document action which is using the
actions.js ( So when you try to create a new document which already exists
the user got an alert )
in the sitemap there s this matcher :
<map:match pattern="copy(**,**/*)">
<map:call function="copy">
<map:parameter name="source" value="{repository:files}{1}"/>
<map:parameter name="destination"
value="{repository:files}{2}/{3}"/>
<map:parameter name="collection" value="{2}"/>
<map:parameter name="uriPrefix" value="{repository:files}"/>
<map:parameter name="rename" value="false"/>
</map:call>
</map:match>
And i don t how or where is it called ???
I can t trace the all code execution since you click on the 'OK' button
until the alert.
I just know that after the method copy in the action.js, this matcher is
called :
<map:match pattern="copy-result">
<map:generate type="jx" src="resources/xml/copy-result.xml"/>
<map:transform src="transformers/copy-result.xsl"/>
<map:transform type="i18n">
<map:parameter name="locale" value="{session-attr:locale}"/>
<map:parameter name="default-catalogue-id" value="messages"/>
</map:transform>
<map:serialize type="html"/>
</map:match>
with this line :
cocoon.sendPage("copy-result", {exists:true});
So my question is ; How and where the first matcher is called ???
thanks a lot for your help
cheers,
Nicolas
--
View this message in context:
http://www.nabble.com/Workflow-feedback-to-the-user-tp14685450p14730576.html
Sent from the Hippo CMS development public mailinglist mailing list archive at
Nabble.com.
********************************************
Hippocms-dev: Hippo CMS development public mailinglist