Anyone have any idea how to extend RM to add in a custom action? I've created several custom actions for standard collaboration sites and I'm sure I used Jeff Potts' guide (Creating Custom Actions in Alfresco | ECMArchitect | Alfresco Developer Tutorials) to learn how do make the first one but I don't know how to extend the actions for RM sites.
The closest I've found is this file that seems to define the available actions for the various record states and permission levels but I don't know how to extend it:
/site-webscripts/org/alfresco/rm/components/document-details/document-actions.get.config.xml
Thanks,
Neil
I believe I've found the answer to my own problem. The DocLibActions evaluator was correct but I needed the right actionGroup to add the action to which was rm-records-details in my case. Here's a contrived example that adds an action to the list for a record:
<config evaluator="string-compare" condition="DocLibActions">
<actions>
<action icon="folder-edit-metadata"
id="gry-parent-folders"
label="actions.grey-unpublish-action.title"
type="link">
<param name="href">/alfresco/s/reports/parent-nodes</param>
<param name="target">_blank</param>
</action>
</actions>
<actionGroups>
<actionGroup id="rm-record-details">
<action index="508" id="gry-parent-folders" />
</actionGroup>
</actionGroups>
</config>
I found the list of action groups in the share config for RM:
records-management/rm-share-config.xml at master · Alfresco/records-management · GitHub
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.