Overriding the invite template used by Share
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2013 04:02 AM
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?
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?
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-05-2013 02:13 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2014 02:08 PM
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!
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!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-01-2014 01:17 PM
Did you try changing the file - 'app:company_home/app:dictionary/app:email_templates/cm:invite/cm:invite-email.html.ftl'