09-22-2016 05:53 AM
The idea is to simplify the document's view. One task is to separate the most used actions (our custom and alfresco' s built in actions) with the rest.
One thought is to create a custom panel (Favorite Actions) in the document-details page, above the Document Actions.
How can we add (javascript) actions in this custom panel with all the related functionalities (action type, success messages, javascript event, params.. )
I.e. we could add html links in the ftl, could we relate the javascript action will be fired? (YAHOO.Bubbling.fire("registerAction", ... ) -- when the type of the action is type="javascript")
Thanks in advance.
09-22-2016 06:29 AM
You may check out this tutorial here.
09-22-2016 07:03 AM
Sujay thank you for your reply. We have created a doclib javascript action with success, using the above tutorial.
But these actions can be set visible only in available actionGroups, such as 'document-details'.
The question is how could i set visible this action in our custom panel above the 'Document Actions'. Or what javascript action is actually been fired, so as to hardcode it in our panel's ftl.
09-22-2016 07:16 AM
Does this help you ... Add, remove or replace components on Share’s Document Details page | Erik Winlöf's blog
09-22-2016 07:24 AM
I have read that as well and guided me to create the custom panel. Thank you.
But how do I add actions in the acme-sample sub-component? And not in the document-details? Should I extend the DefaultDoclistActionGroupResolver and will work?
09-22-2016 07:46 AM
I hardcoded in the ftl of the custom panel
<div class="my.doclib.action.id" id="myJavascriptFunctionNameThatCallsAWebScript">
<a title="a title" class="action-link" href="#"
style="background-image:url(/share/res/components/documentlibrary/actions/document-assign-workflow-16.png)">
<span>my action</span>
</a>
</div>
and the action is called as it was in the document actions panel. It is a partial solution as we can not use the evaluators.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.