translating invitation emails

Hello I find Nuxeo platform features fantastic but sometimes cryptic to customized. Specifically, I need to translate the invitation emails sent to a newly created user which doesn't seem to be provided by default in studio. Using the platform explorer, I found the default config for user invitation is provided by the nuxeo-platform-webapp-base module. I've then prepared 1) translated email templates (paying attention to correctly escaping accented characters) and 2) a contribution against the invite core service configuration point to load new templated and email subjects as follow :

<?xml version="1.0" encoding="UTF-8"?>
<component name="my.translation.invitations">
<require>org.nuxeo.ecm.user.invite.core.service.contrib</require>
<require>org.nuxeo.runtime.started</require> 
<extension point="configuration"
    target="org.nuxeo.ecm.user.invite.UserInvitationService">
    <configuration>
        <requestDocType>UserInvitation</requestDocType>
        <container>
            <docType>UserInvitationContainer</docType>
            <parentPath>/management/</parentPath>
            <name>invitationRequests</name>
            <title>Invitation Requests Container</title>
        </container>
        <validationEmail>
            <title>Invitation de connexion</title>
            <template>data/templates/ValidationEmailTemplate.ftl</template>
        </validationEmail>
        <reviveEmail>
            <title>Rappel: invitation de connexion</title>
            <template>data/templates/ReviveEmailTemplate.ftl</template>
        </reviveEmail>
        <enterPasswordUrl>site/userInvitation/enterpassword/
        </enterPasswordUrl>
        <validationRelUrl>site/userInvitation/validate</validationRelUrl>
    </configuration>
</extension>

Despite hours of tries, I can't make this configuration taken into account. Likely a small thing is missing, but can't find what. Can someone point me in the right direction?

Many thanks Raymond

Ps: I'm using Nuxeo 6.0 HF2

0 votes

1 answers

2238 views

ANSWER

Raymond did you succeed to change it ?
01/13/2016



I have been facing the same issue, and I have also spent useless hours on it.

This extension point doesn't actually override the templates : the solution is to change your template names so that they don't match any existing template.

0 votes



Hi everyone!

The answer has been given here.

01/14/2016