AnsweredAssumed Answered

Email template changes in Alfresco

Question asked by pat9rv3sousa on May 11, 2016
Latest reply on Nov 28, 2016 by hiten.rastogi
I'm trying to edit the link of the `task-edit` of the e-mail that is sent to the assignees of the task. I see that in the file `wf-emails.html.ftl` but in `Data Dictionary -> Email Templates -> Workflow Notification` inside Alfresco admin account. How can I edit this file through a module of Alfresco (all-in-one for example, in the amp's)…

I put in the

> module-context.xml

 

      <bean id="customSpacesBootstrap" parent="spacesStoreImporter" singleton="true" >
            <property name="useExistingStore">
                <value>true</value>
            </property>
            <property name="bootstrapViews">
                <list>
                    <props>
                        <prop key="path">/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.templates.email.childname}</prop>
                        <prop key="location">alfresco/module/repo-amp/bootstrap/config_email_templates.xml</prop>
                    </props>
                </list>
            </property>
        </bean>



> config_email_templates.xml

    <view:view xmlns:view="http://www.alfresco.org/view/repository/1.0"
               xmlns:cm="http://www.alfresco.org/model/content/1.0" xmlns:app="http://www.alfresco.org/model/application/1.0"
               xmlns:emailserver="http://www.alfresco.org/model/emailserver/1.0">
   
        <cm:folder view:childName="cm:My First Folder">
            <app:uifacets />
            <cm:name>My First Folder</cm:name>
            <app:icon>space-icon-default</app:icon>
            <cm:title>My First Folder</cm:title>
            <cm:description></cm:description>
            <cm:contains>
                <cm:content view:childName="cm:custom_email_template.ftl">
                    <view:aspects>
                        <cm:titled />
                        <cm:author />
                        <app:inlineeditable />
                    </view:aspects>
                    <view:properties>
                        <app:editInline>true</app:editInline>
                        <cm:description>This is a custom email template.</cm:description>
                        <cm:content>contentUrl=classpath:alfresco/module/repo-amp/bootstrap/custom_email_template.ftl|mimetype=text/plain|size=|encoding=UTF-8|locale=en_US_</cm:content>
                        <cm:title>My first email template</cm:title>
                        <cm:author>Me</cm:author>
                        <cm:name>custom_email_template.ftl</cm:name>
                    </view:properties>
                    <view:associations></view:associations>
                </cm:content>
            </cm:contains>
        </cm:folder>
    </view:view>

And in the

> custom_email_templates.ftl

I put the template with edits.
But the email doesn't edits.

How can I do this?

Outcomes