I want to create a menu item in share that lets me download a modified version of the contents of a node. I think the best way to do this is a doclib action with a java-backed web script that modifies the data and then sends it back as a stream.
I think I'm all good on the repo side, but I'm struggling with getting my doclib actions to do anything at all. They show up in the menus where they are supposed to (properly internationalized), but I can't seem to figure out how to connect the javascript properly.
In my add-doclib-actions-extension-modules.xml (which gets the UI elements showing properly), I have: <action id="my.test.doclib.action.callWebScript" icon="mytest" type="javascript" label="my.test.doclib.action.callWebScript.label"> <param name="function">onActionCallWebScript</param> … and I have a src/main/amp/web/components/documentlibrary/custom-doclib-actions.js that is identical to the one in the tutorial except for the messages to display.
Version: Alfresco started (Community). Current version: 5.1.0
Can someone please point me in the right direction? Nothing happens when I click those menu buttons, and nothing appears in the logs.