Monday, August 4, 2014

Override Alfresco Share action order

To override the action order in documentlibrary extensions, your can do so by defining the action group with new index for action.

EX:

<actionGroups> 
  <actionGroup id="document-browse">
    <action index="XYZ" id="document-move-to" />
...


An important rule is use three digits, always three digits! So to move an action up in the top (lower than index 100), so it will become visible document browsing use prefixes of zero (0) ~I think it probably does a string compare somewhere, would explain the behaviour.

EX:

<actionGroups>
  <actionGroup id="document-browse">
    <action index="099" id="document-move-to" />

...