集体旋转行为
collective.carouselbehaviour的Python项目详细描述
Introduction
此包提供将旋转木马信息分配给 Plone和中基于灵活性的(plone.app.dexterity)内容类型 使用collective.carousel执行此操作。
通过将此包中的行为应用于灵巧内容类型,可以 carousel字段在创建或编辑所述内容时变为可用。
找到虫子了吗?请用issue tracker。
Installation
此加载项可以安装有任何其他加载项,请遵循官方 documentation。
Usage
Through the web
如果您正在通过基于web的 界面,然后继续编辑灵活内容中的内容类型 类型控制面板。在行为选项卡下,您将找到 Collective Carousel Behaviourbehavior–选择此选项并保存 内容类型。
在添加或编辑内容类型的对象时,您将看到 相应地。
Generic Setup (file system)
如果已经创建了文件系统灵巧类型配置,则需要 将相关接口指定为行为:
collective.carouselbehaviour.collectivecarouselbehaviour.ICollectiveCarouselBehaviour
以及导入或重新导入类型配置。例如,类型 配置位于${product_dir}/profiles/default/types/my.datatype.xml 会是这样的:
<?xml version="1.0"?> <object name="my.datatype" meta_type="Dexterity FTI" xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:domain="tdh.metadata"> ... <property name="behaviors"> <element value="collective.carouselbehaviour.collectivecarouselbehaviour.ICollectiveCarouselBehaviour"/> </property> ... </object>