Question

We need to customize for example the standard mail invitation template by changing the text a bit. I know this can be done by editing the freemarker template for the invitation that is stored in the data dictionary. This is however not optimal when it comes to application packaging. Is it somehow possible to extend the templates in the manner that they could be put on the extension classpath like the regular extension mechanism?

edit: Found out that the inviation template for emails are hardcoded in the InviteSender java-class. :(

So I guess we will have to extend that class (and a lot of others) to do this.

Another solution I can think of would be to write a patch that replaces the ftl-files in the data dictionary with our edited ones at install time. Any other ideas?

Was it helpful?

Solution

It has been done and has been written in this blog.

In short No there is no out of the box solution for it. Yes you could bootstrap your files and Patch Alfresco's (that's the most common used way).

You should also consider the fact that changing a template without to have access to the server where Alfresco is installed is a nice feature. With this functional guys who manage/operate/use Alfresco can change templates to their needs.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top