简体   繁体   中英

Alfresco: change “Start Workflow” button text

I have developed a custom workflow in Alfresco that starts with a form. I need to change the "Start Workflow" button to say "Submit". I have located the line in the start-workflow.get.js file which accomplishes this:

submitButtonMessageKey : "button.startWorkflow"

However, when I attempt to override this is in my .properties files on both the repository and share sides, the change is not reflected. I have tried the following:

button.startWorkflow=Submit
myWorkflow.button.startWorkflow=Submit
myWorkflow.workflow.button.startWorkflow=Submit

What correct syntax or implementation must I follow to successfully change the text?

You should be able to override message using

button.startWorkflow=Submit

Only thing is you need to make sure file which you are trying to override is loaded properly and overriding existing one.

Other option is to override webscript's controller which will point to new lable from your new message bundle file. you need to create exactly same folder structure under web-extension and place those files @ that location.

Best way is to use extension mechanism to override existing webscript.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM