AnsweredAssumed Answered

How to override (replace) original free marker template of java end webscripts

Question asked by zhi.wang@parashift.com.au on Mar 14, 2018
Latest reply on Mar 15, 2018 by zhi.wang@parashift.com.au

Hi there,

 

Is there a way to override (replace) the ftl file used by workflow related webscript in remote-api package? For example, file `workflow.lib.ftl` used by workflow webscripts, it's under the folder path:

 

https://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/repository/workflow/ 

 

I found an article here: Overriding Alfresco webscript library ftl files - Nick  talking about overriding `workflow.lib.ftl` by copying it to same folder structure in a module, but I couldn't figure out where I should copy this file to in my module, so I was wondering what the correct path should be? I've tried to put it in:

 

resources/alfresco/templates/webscripts/org/alfresco/repository/workflow/workflow.lib.ftl
resources/META-INF/alfresco/templates/webscripts/org/alfresco/repository/workflow/workflow.lib.ftl

 

None of them works, please help me.

 

Thank you.

Outcomes