cancel
Showing results for 
Search instead for 
Did you mean: 

Email template changes in Alfresco

pat9rv3sousa
Champ on-the-rise
Champ on-the-rise
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?
1 REPLY 1

hiten_rastogi1
Star Contributor
Star Contributor

Hi pat9rv3sousa,

Were you able to get it working?? I want to replace all the existing email templates in alfresco with my custom ones, please let me know.

Thanks