AnsweredAssumed Answered

Space specific actions?

Question asked by moschops on Apr 13, 2009
I would like to have an action added to content-items in a specific space to archive them.  I don't want to see that action in the menus elsewhere (its sort of a primitive workflow).  Is this possible?   My best guess is there is an evaluator I could use in the config file but I haven't found one that is space specific. 

Right now in my web-client-config-custom.xml I have code to add the archive document script action for all instances of the newArticle content and it works for all spaces.

   <config evaluator="node-type" condition="newsArticle">
       <action id="archive_document">
      <permission allow="true">Write</permission>
      <permission allow="true">AddChildren</permission>
    <tooltip>Archive this document</tooltip>
    <script>/Company Home/Data Dictionary/Scripts/archive_document.js</script>
      <param name="nodeRef">#{actionContext.nodeRef}</param>

       <action-group id="document_browse">
    <action idref="archive_document" />