AnsweredAssumed Answered

Action on node (Custom type)

Question asked by buurd on Sep 18, 2008
Hi!

I have developed an Action that works fine when i configure it to be acceable from the "Action Wizard".


<!–  Put the Action in Action Wizards –>
   <config evaluator="string-compare" condition="Action Wizards">
      <action-handlers>
         <handler name="move_replaced"
            class="se.redpill.alfresco.module.jkp.CreateProcess90ProjectHandler" />
      </action-handlers>
   </config>

But when I want to limit the use of the action to a specific content-type the action doesn't appear in the nodes action-menu.

<config evaluator="node-type" condition="tk:rootProjectSpace">
   <action-handlers>
      <handler name="move_replaced"
            class="se.redpill.alfresco.module.jkp.CreateProcess90ProjectHandler" />
    </action-handlers>
</config>

But when I change the configuration to a javascript-variation the action gets into the right place:

<config evaluator="node-type" condition="tk:rootProjectSpace">
<actions>
         <!–  –>
         <action id="tk_createDocument">
            <permissions>
               <permission allow="true">Read
                    </permission>
            </permissions>
            <label>Skapa nytt process90 dokument</label>
            <script>/Company Home/Data Dictionary/Scripts/TKNewProcess90Document.js</script>
         </action>
         <!–
            Add actions to Actions Menu for a space in the SpaceBrowse screen
         –>
         <action-group id="space_browse_menu">
            <action idref="tk_createDocument" />
         </action-group>
      </actions>
   </config>

Any ideas?

Thanks in advance
Roland

Outcomes