Plone的附加字符串插值:在内容规则电子邮件消息中添加内容文本
项目描述
这是一个针对 plone.stringinterp 模块的 Plone 扩展。
将其添加到您的 buildout,您将能够在内容规则电子邮件中添加 完整内容文本。
如何使用
当您为 Plone 内容规则准备电子邮件操作时,您现在可以在文本中使用两个额外的标记
- ${text}
当前文档全文
- ${indented_text}
与上面相同,但使用制表符在每一行之前进行右缩进。
文本从 HTML 转换为纯文本(正如 Plone 电子邮件通常所做的那样)。
配置如下邮件消息规则的
Hi, the new document "${title}" has been created. ${text}
…将生成这个
Hi, the new document "Welcome to Plone" has been created. If you're seeing this instead of the web site you were expecting...
以及配置如下邮件消息规则的
Hi, the new document "${title}" has been created. ${indented_text}
…将生成这个
Hi, the new document "Welcome to Plone" has been created. If you're seeing this instead of the web site you were expecting...
获取文本
“主要文本字段”是一个抽象实体。该产品尝试使用适配器猜测文本,因此您可以覆盖或提供更具体的适配器(请参阅代码中的示例)。
通常,此类文本提取受到支持
基于 ATContentTypes 的内容类型,具有 text 字段(事件、新闻条目、文档、主题)
来自 plone.app.discussion 的评论
具有 text 字段的可扩展性内容类型
此外,一个通用的适配器,简单地尝试读取是否提供了“text”属性。
致谢
在 Regione Emilia Romagna 的支持下开发;Regione Emilia Romagna 支持 PloneGov 初始化程序。
变更日志
1.0.0 (2022-07-14)
升级到 plone 5.2 和 python3.8。 [reflab]
0.3 (2017-11-07)
修复了对象 dexterity 内容完全为空的文本字段时的适配器。 [lucabel]
0.2 (2013-09-06)
修复了没有文本字段(例如文件)的对象时的适配器。 [cekk]
0.1.1 (2013-08-02)
没有注册 locales 文件夹 [keul]
0.1 (2013-05-30)
初始发布
项目详情
关闭
collective.stringinterp.text-1.0.0.tar.gz 的散列
算法 | 散列摘要 | |
---|---|---|
SHA256 | f9e8850719b842f28467475ce1684ee236165dcdad169c5457bd1c330a51a6aa |
|
MD5 | 2f0abb31449fb42ae8667edc20565c59 |
|
BLAKE2b-256 | 272a7dc00241776fed39da3e93d33bb024b8f4b86ec940fc42183ddf4ea626c5 |