cancel
Showing results for 
Search instead for 
Did you mean: 

Add Custom Action Button

sakshik
Star Contributor
Star Contributor

To add a custom action link in Documents Actions[ where Copy To, Move To etc are present], I am adding

<div>
<a rel='' href='#' class='action-link' title='${msg('actions.document.backup')}'>
${msg('actions.document.backup')}</a>
</div>

in ...\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\documentlibrary\documentlist.get.html.ftl

and

<actionSet id = 'document'>
<action type="action-link" id="onActionBackup" label="actions.document.backup" />
</actionSet>

in WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\documentlibrary\repo-toolbar.get.config.xml

and

actions.document.backup=Backup
message.backup.success='{0}' successfully backed up.
message.backup.failure=Couldn't backup '{0}

in \WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\documentlibrary\documentlist.get.properties

But I am not able to see the new link come up in Document Actions.

Is there anything that I am missing?

1 ACCEPTED ANSWER

douglascrp
World-Class Innovator
World-Class Innovator

In order to create a new Action, there is no need to deal with the HTML part.

All you have to do is to perform the steps in the tutorial shared before.

The action rendering will be handled for you by Share.

View answer in original post

5 REPLIES 5

douglascrp
World-Class Innovator
World-Class Innovator

In order to create a new Action, there is no need to deal with the HTML part.

All you have to do is to perform the steps in the tutorial shared before.

The action rendering will be handled for you by Share.