I'm struggling finding examples or instructions on how to add my custom action to the multi-select dropdown. I've managed to get my java amp working on a per document basis - but there doesn't seem to be any actionGroup ID or anything for adding it to that spot. Can anyone give me any guidance or point me in the right direction?
<module>
<id>Multi actions</id>
<version>${project.version}</version>
<auto-deploy>true</auto-deploy>
<auto-deploy-index>101</auto-deploy-index>
<configurations>
<config evaluator="string-compare" condition="DocumentLibrary" replace="true">
<multi-select>
<action type="action-link" id="onActionDownload" icon="document-download" label="menu.selected-items.download" />
</multi-select>
</config>
</configurations>
</module>
In above code , onActionDownload is a function, which will get called on click of the actions.Yu need to define this function inside javascript file.You can use the existing functions as well.Existing multiselect actions are defined inside share-war\WEB-INF\classes\alfresco\share-documentlibrary-config.xml file.
Thanks for the reply Krutik,
I am able to to get my select item showing up in the multi select, and to get it to call some arbitrary registerAction function - but is there a way to call my action defined in the repo side from the javascript? I'm having trouble making the jump from my custom function to my repo action.
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.