gpt4 book ai didi

alfresco - Alfresco 中的电子邮件模板更改

转载 作者:行者123 更新时间:2023-12-01 04:57:04 31 4
gpt4 key购买 nike

我正在尝试编辑 task-edit 的链接发送给任务受让人的电子邮件。我在文件 wf-emails.html.ftl 中看到了但在 Data Dictionary -> Email Templates -> Workflow Notification在 Alfresco 管理员帐户中。如何通过 Alfresco 的模块(例如,在放大器中的一体机)编辑此文件...

我把

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>

而在

custom_email_templates.ftl



我把模板与编辑。
但电子邮件不会编辑。

我怎样才能做到这一点?

最佳答案

来自 Alfresco documentation :

XML imports can only replace/update/delete files that have their UUID set.



如果要替换现有节点,则必须查看更多关于 import strategy 的信息。 :
<bean id="myModule.bootstrap" class="org.alfresco.repo.module.ImporterModuleComponent"  parent="module.baseComponent">
<property name="uuidBinding">
<value>REPLACE_EXISTING</value>
</property>

...

当然,您需要知道 uuid 您要替换的文件:
<view:properties>
<sys:node-uuid>b7c6b88a-e5fd-4ccf-b134-69a2460c3b89</sys:node-uuid>
....

关于alfresco - Alfresco 中的电子邮件模板更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36388309/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com