Andrew Savory wrote:
On 10/01/2008, Nicolas M <[EMAIL PROTECTED]> wrote:
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 find any reference to it elsewhere so it's either (a) not used or
(b) called by something that's dynamically-generated (like the workflow
actions).
So my question is ; How and where the first matcher is called ???
My guess is that it's (b), from the dynamically-generated cform for
workflow.
My guess is that it's (a). In editor/src/site/actions/flow/actions.js,
function copy() I see that WebDAVHelper.copy(). Probably the pipeline
was used before but not removed after being replaced with the call to
WebDAVHelper.copy().
BTW, note that copy is not a workflow action.
Kind regards
Niels
********************************************
Hippocms-dev: Hippo CMS development public mailinglist