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">
     <actions>
       <action id="archive_document">
         <permissions>
      <permission allow="true">Write</permission>
      <permission allow="true">AddChildren</permission>
    </permissions>
    <label>Archive</label>
    <tooltip>Archive this document</tooltip>
         <image>/images/icons/folder.gif</image>
    <script>/Company Home/Data Dictionary/Scripts/archive_document.js</script>
         <params>
      <param name="nodeRef">#{actionContext.nodeRef}</param>
    </params>
       </action>

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

     </actions>
    
   </config>

Outcomes