gpt4 book ai didi

workflow - 为 Plone 4 自定义内容类型创建工作副本

转载 作者:行者123 更新时间:2023-12-04 04:58:38 29 4
gpt4 key购买 nike

我在我的包中创建了一个自定义的 Plone 内容类型,即 my.product .

我需要集成工作副本支持:以便“已发布”文档(在我的情况下是已发布的内容类型)在编辑时保持在线状态。基本上,我想利用 plone.app.iterate 提供的“工作副本支持(迭代)”。实现what is explained here .这将使我能够check-in/check-out我的变化。

这在 Plone 4 中是否可以使用 Archetypes 使用自定义内容类型?如果是的话,怎么办?

最佳答案

我在my.product/my/product/profiles/default里面添加了以下两个文件文件夹,它似乎工作:

diff_tool.xml

<?xml version="1.0"?>
<object>
<difftypes>
<type portal_type="MyCustomType">
<field name="any" difftype="Compound Diff for AT types"/>
</type>
</difftypes>
</object>

存储库工具.xml
<?xml version="1.0"?>
<repositorytool>
<policymap>
<type name="MyCustomType">
<policy name="at_edit_autoversion"/>
<policy name="version_on_revert"/>
</type>
</policymap>
</repositorytool>

关于workflow - 为 Plone 4 自定义内容类型创建工作副本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16437961/

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