如何在我的 Plone 4.3.9 站点中启用旧样式集合?
How do I enable old style collections in my Plone 4.3.9 site?
我可以使用旧风格系列而不是新系列吗?如果是,怎么做?
转到 http://[HOST]/[PLONESITE_ID]/@@types-controlpanel?type_id=Topic
,选中显示 "Globally addable" 的框,然后点击表格底部的 "Apply Changes"。
通过将 /profiles/default/Topic.xml
添加到您的插件中以编程方式可重现,内容如下:
<object name="Topic">
<!-- Enable old-style-collections
By default turned off since >= Plone-4.1 -->
<property name="global_allow">True</property>
</object>
要关闭 new-style-collections,您可以执行相同的步骤,只需将 "Topic" 替换为 "Collection" 并将 "global_allow" 设置为 False。
如果您还希望能够在 collection 的 edit-mode 中定义哪些字段可用作可选标准,请通过站点 UI,转到 http://[HOST]/[PLONESITE_ID]/portal_controlpanel/manage_editActionsForm
并检查 "Collections (old style)" 条目,然后 "Collections (old style)" 将在站点的控制面板中显示配置,可通过 http://[HOST]/[PLONESITE_ID]/@@overview-controlpanel
.
访问
这些设置也可以通过 profiles/default/portal_atct
以编程方式复制,您可以通过 http://[HOST]/[PLONESITE_ID]/portal_setup/manage_main
导出相关的 xml-file,或者查看此示例以了解方向:https://raw.githubusercontent.com/ida/adi/master/adi.tickets/adi/tickets/profiles/default/portal_atct.xml
注意:如果您要在此处添加新字段作为条件,您还需要通过 profiles/default/catalog.xml
在目录中注册它们,该情况的另一个示例:https://github.com/ida/adi/blob/master/adi.tickets/adi/tickets/profiles/default/catalog.xml
此外:如果您想让访问者更改要搜索的标准值,请通过 UI 即时更改 – 换句话说,search-form – 查看 collective.formcriteria, written by Ross Patterson .
我可以使用旧风格系列而不是新系列吗?如果是,怎么做?
转到 http://[HOST]/[PLONESITE_ID]/@@types-controlpanel?type_id=Topic
,选中显示 "Globally addable" 的框,然后点击表格底部的 "Apply Changes"。
通过将 /profiles/default/Topic.xml
添加到您的插件中以编程方式可重现,内容如下:
<object name="Topic">
<!-- Enable old-style-collections
By default turned off since >= Plone-4.1 -->
<property name="global_allow">True</property>
</object>
要关闭 new-style-collections,您可以执行相同的步骤,只需将 "Topic" 替换为 "Collection" 并将 "global_allow" 设置为 False。
如果您还希望能够在 collection 的 edit-mode 中定义哪些字段可用作可选标准,请通过站点 UI,转到 http://[HOST]/[PLONESITE_ID]/portal_controlpanel/manage_editActionsForm
并检查 "Collections (old style)" 条目,然后 "Collections (old style)" 将在站点的控制面板中显示配置,可通过 http://[HOST]/[PLONESITE_ID]/@@overview-controlpanel
.
这些设置也可以通过 profiles/default/portal_atct
以编程方式复制,您可以通过 http://[HOST]/[PLONESITE_ID]/portal_setup/manage_main
导出相关的 xml-file,或者查看此示例以了解方向:https://raw.githubusercontent.com/ida/adi/master/adi.tickets/adi/tickets/profiles/default/portal_atct.xml
注意:如果您要在此处添加新字段作为条件,您还需要通过 profiles/default/catalog.xml
在目录中注册它们,该情况的另一个示例:https://github.com/ida/adi/blob/master/adi.tickets/adi/tickets/profiles/default/catalog.xml
此外:如果您想让访问者更改要搜索的标准值,请通过 UI 即时更改 – 换句话说,search-form – 查看 collective.formcriteria, written by Ross Patterson .