As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hi, Nuno.You are saying "Alfresco Repository" but you are talking about UI actions. There are two out-of-the-box user interfaces. One is called "Alfresco Explorer" and the other is called "Alfresco Share". Both support doing what you are trying to do. Usually, "Repository" is a back-end concept that has no user interface.If you are adding your UI action to Share, take a look at this tutorial. If you are adding your UI action to Explorer you might look at Chapter 5 of the Alfresco Developer Guide. The accompanying code for the book lives here.The wiki page you pointed to is about custom actions that make changes to a node. In your case, you aren't making a change to a node, you are gathering some information from the node and then redirecting the user to a specific link. So as you look at the wiki and the docs, you definitely want a "UI action" instead of a "rule action".Hope that helps,Jeff
@Override protected void addParameterDefinitions(List<ParameterDefinition> paramList) { paramList.add( new ParameterDefinitionImpl( // Create a new parameter definition to add to the list "file" // The name used to identify the parameter DataTypeDefinition.CONTENT, // The parameter value type true, // Indicates whether the parameter is mandatory ?????); // The parameters display label }
<!– Actions –> <config evaluator="string-compare" condition="DocLibActions"> <actions> <action id="file-transfer" type="javascript" label="actions.document.file-transfer"> <param name="function">onActionSimpleRepoAction</param> <param name="action">file-transfer</param> </action> </action> </config>
<actionGroups> <actionGroup id="document-browse"> <action index="500" id="someco-web-site" /> <action index="510" id="someco-web-enable" /> <action index="520" id="someco-web-disable" /> </actionGroup> <actionGroup id="document-details"> <action index="500" id="someco-web-site" /> <action index="510" id="someco-web-enable" /> <action index="520" id="someco-web-disable" /> </actionGroup> </actionGroups>