Liferay 6.2电子邮件通知中的自定义字体系列

Liferay 6.2电子邮件通知中的自定义字体系列,liferay,liferay-6,liferay-ide,Liferay,Liferay 6,Liferay Ide,我想知道如何更改电子邮件通知正文的字体系列 关于普通邮件通知,控制面板编辑器不提供这种可能性 关于工作流邮件通知和其他portlet邮件通知 就像留言板或日历一样,我仍然看不到这种可能性 任何帮助都将不胜感激。问题相当棘手,但我们找到了有效的解决方案。我们在项目中使用kaleo工作流通知解决了这个问题。我假设您已经了解了如何使用kaleo,所以这里只是我们工作流定义中使用的代码的一部分,用于在用户采取的某个操作中发送电子邮件通知 <notification>

我想知道如何更改电子邮件通知正文的字体系列

关于普通邮件通知,控制面板编辑器不提供这种可能性

关于工作流邮件通知和其他portlet邮件通知 就像留言板或日历一样,我仍然看不到这种可能性


任何帮助都将不胜感激。

问题相当棘手,但我们找到了有效的解决方案。我们在项目中使用kaleo工作流通知解决了这个问题。我假设您已经了解了如何使用kaleo,所以这里只是我们工作流定义中使用的代码的一部分,用于在用户采取的某个操作中发送电子邮件通知

    <notification>
                <name>Creator Modification Email Notification</name>
                <description>[Rejection] Your article has been rejected.</description>
                <template>
                    <![CDATA[
                    <html>
                        <head><style>table, th, td {border: 1px solid black; border-collapse: collapse;}th, td { padding: 5px;text-align: left;}</style><head>
                        <body>
                            <p>Lorem ipsum...</p>
                            ###....
                            ##some settings removed to make it look more clear
                            ##


                            <table>
                                <tr><th colspan="2"><b>Some information about rejected article</b></th></tr>
                            ## another information removed to make it look more clear for you
                            </table>
                        </body>
                ]]>
                </template>
                <template-language>velocity</template-language>
                <notification-type>email</notification-type>
                <execution-type>onAssignment</execution-type>
            </notification>
如您所见,我们使用html来呈现此通知电子邮件。另外,css的一部分包含在标题部分中,以使最终用户看起来更优雅。添加更多指定的css样式(包括字体等)应该不会有任何问题

顺便说一句:请确保将此工作流定义上传为xml,因为半年前有一个bug,它清除了所有特殊字符的定义,最后,您无法使用此类模板。这仍然可以使用他们的liferay上载程序并使用workflow_definition.xml文件。我希望我能帮助你解决这个问题