AnsweredAssumed Answered

Custom action not working

Question asked by darkredd on Aug 19, 2015
Latest reply on Aug 25, 2015 by darkredd
Hi all,

I am trying to create a share action, followed a few tutorials and famously Jeff Potts's creating custom action tutorial <a href="http://ecmarchitect.com/alfresco-developer-series-tutorials/actions/tutorial/tutorial.html#example-1-move-replaced">here</a> to no effect. Here is my share-config file:

1. share-config

   <config evaluator="string-compare" condition="DocLibActions">
  
      <actions>
         <action id="bubble-action" type="javascript" label="Bubble Action">
            <param name="function">onActionSimpleRepoAction</param>
            <param name="action">bubble-click</param>
         </action>
      </actions>
      
      <actionGroups>
    
         <actionGroup id="document-browse">
            <action index="300" id="bubble-action" />
         </actionGroup>
      
      <actionGroup id="document-details">
            <action index="340" id="bubble-action" />
      </actionGroup>
      
      </actionGroups>
   </config>


The button appears on share but does nothing when clicked. I suspect my wiring is wrong. Or maybe I just went about this the wrong way.

Outcomes