将plone“description”字段转换为richtext/html
collective.richdescription的Python项目详细描述
Introduction将新的HTML可格式化文本字段“richDescription”添加到基于内容类型的原型中,并对extensibleMetadata隐藏描述字段。保存
字段时,内容也存储在“description”字段中,但不使用html格式。提供了一个元数据索引,以便“richdescription”
可以与目录大脑一起使用。
目前还没有文件夹列表模板,但是如果您希望在文件夹列表中设置html格式
描述,则可以使用如下内容::
<;tal:block
tal:define=“item\description item/richdescription”nothing;
项目说明python:项目说明或项目.description;“>;
<;p class="akaDescription"
tal:condition=”项目说明“
tal:content=”结构项目说明“>;说明”
<;
风险自负!
说明字段不是用来保存html数据的。人们可能倾向于在“描述”字段中编写
长文章,这可能不是您想要的。
但是有些用例需要此功能,所以请尽情享受。
migration?
==
不需要特定的迁移步骤。当内容类型没有richdescription
字段可用时,它会返回到普通的description
字段。保存内容类型时,将设置richdescription字段,并填充
目录的元数据richdescription列。
兼容性
===
>使用plone 4测试
author
==
johannes raggam<;johannes@raggam.co.at>;如果你想帮助发展(报告、改进、更新、错误修正、……)“集体描述”,这是个好主意!
请在“问题跟踪器”lt;https://github.com/collective/collective.richdescription`.
代码位于“github collective”lt;https://github.com/collective/collective.richdescription`.
您可以克隆它或“访问github collective<;http://collective.github.com/>;``直接参与项目。
维护者是johannes raggam和bluedynamics联盟开发团队。我们感谢您的贡献,如果需要在pypi上发布,
请联系我们中的一个“dev@bluedynamics.com<;mailto:dev@bluedynamics.com>;`
>2.0(2014-11-11)
<元数据更新。
[thet]
>1.0(2012-11-07)初始版本
[thet]
修复了
attributeerror,其中尝试对字符串
值访问原始编码。
[thet]
-为任何主题注册皮肤文件夹。
[thet]
-sfd.at的2010-10-05初始版本。
字段时,内容也存储在“description”字段中,但不使用html格式。提供了一个元数据索引,以便“richdescription”
可以与目录大脑一起使用。
目前还没有文件夹列表模板,但是如果您希望在文件夹列表中设置html格式
描述,则可以使用如下内容::
<;tal:block
tal:define=“item\description item/richdescription”nothing;
项目说明python:项目说明或项目.description;“>;
<;p class="akaDescription"
tal:condition=”项目说明“
tal:content=”结构项目说明“>;说明”
<;
风险自负!
说明字段不是用来保存html数据的。人们可能倾向于在“描述”字段中编写
长文章,这可能不是您想要的。
但是有些用例需要此功能,所以请尽情享受。
migration?
==
不需要特定的迁移步骤。当内容类型没有richdescription
字段可用时,它会返回到普通的description
字段。保存内容类型时,将设置richdescription字段,并填充
目录的元数据richdescription列。
兼容性
===
>使用plone 4测试
author
==
johannes raggam<;johannes@raggam.co.at>;如果你想帮助发展(报告、改进、更新、错误修正、……)“集体描述”,这是个好主意!
请在“问题跟踪器”lt;https://github.com/collective/collective.richdescription`.
代码位于“github collective”lt;https://github.com/collective/collective.richdescription`.
您可以克隆它或“访问github collective<;http://collective.github.com/>;``直接参与项目。
维护者是johannes raggam和bluedynamics联盟开发团队。我们感谢您的贡献,如果需要在pypi上发布,
请联系我们中的一个“dev@bluedynamics.com<;mailto:dev@bluedynamics.com>;`
>2.0(2014-11-11)
<元数据更新。
[thet]
>1.0(2012-11-07)初始版本
[thet]
修复了
attributeerror,其中尝试对字符串
值访问原始编码。
[thet]
-为任何主题注册皮肤文件夹。
[thet]
-sfd.at的2010-10-05初始版本。