cancel
Showing results for 
Search instead for 
Did you mean: 

Overriding the invite template used by Share

sujaypillai
Confirmed Champ
Confirmed Champ
Hello All,

I have bootstrapped a space called "MyComp" under Company Home > Data Dictionary. This space contains 3 spaces - Email Templates, Messages, Models.
Under Email Templates there is a file called mycomp-invite-email.html.ftl [app:company_home/app:dictionary/app:mycomp/cm:email_templates/cm:invite-email.html.ftl]

When a user invite to join a site is send out by default the repo makes use of the template 'app:company_home/app:dictionary/app:email_templates/cm:invite/cm:invite-email.html.ftl' which is hardcoded in InviteSender.java [EAD\root\projects\repository\source\java\org\alfresco\repo\invitation\site\InviteSender]. I would instead like to refer to my customized email template for the invitation being send out.

Can some one suggest an approach for this?
3 REPLIES 3

niketapatel
Star Contributor
Star Contributor
You can change existing template - invite-email.html.ftl. Why don't you change it!

If you really want to user your custom new template then I would suggest you can extend this class and can take template from property file rather than hard coding so in future if any change you can do from prop file

ihsystem
Champ in-the-making
Champ in-the-making
I tried to make changes to this file but it is not reflecting any changes I made in the TEXT.
file location:
vi /opt/alfresco42f/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/invite-email-templates/invite-email.html.ftl

Am I editing right file ? And I need to change following text message!

"An account has been created for you and your login details are:

Username: Invitee@Invitee.domain.com
Password: kbxxxx

We strongly advise you to change your password when you log in for the first time.
You can do this by going to My Profile and selecting Change Password.

If you want to decline Administrator’s invitation, click this link:
"

Any help will be appreciated!

Did you try changing the file - 'app:company_home/app:dictionary/app:email_templates/cm:invite/cm:invite-email.html.ftl'

Welcome to the new Hyland Connect. Get started or submit feedback.