1

I am trying to get the mailer to include a rich label field from my Ploneformgen form. I have gone into the template of the mailer adapter and added this code:

<tal:block tal:content="python:request.form.get('sss-label', None)"/>

'sss-label is the name of the rich label field. This code works for displaying other items on the form, just not this one. Any ideas?

John

4

1 回答 1

1

只有表单输入存储在请求/表单中,因此您需要从字段对象中查找:

<tal:block tal:content="structure context/sss-label/fgField/default" />

“fgField”是 PFG 对字段上下文对象中实际字段的存储。富文本字段的标签 html 存储在字段的默认值中。

于 2013-08-30T22:53:31.080 回答