旋转内容
iqpp.plone.rotating的Python项目详细描述
概述
这个包提供了plone中任意内容的旋转。
它附带了一个默认的portlet来显示旋转内容,但是您可以很容易地 插入您自己的一个和/或viewlet等。
安装
开始的时候,你只需要在你的“鸡蛋”里加上包装 “zcml”部分,运行buildout,重新启动plone实例并安装 “iqpp.plone.rotating”软件包,使用快速安装程序或通过“加载项” “站点设置”中的“产品”部分。
创建一个集合(主题)以选择应旋转的内容。(用于 实例可以使用默认新闻或事件文件夹中的“聚合器”。
调整“旋转选项”选项卡中的选项。
添加一个“旋转”portlet并输入集合的路径。
工作原理
首先,它向关联的集合请求与 标准。如果要求旋转的项目少于找到的项目 随机决定哪些要返回。
选项
已选择返回:
If checked, already selected items can be displayed again. Otherwise items are displayed only once.
重置选定项:
If checked already selected items will be reset if all items has been displayed. Otherwise no item will be returned if all items has been displayed.
更新间隔
Within this intervall (in hours) the same objects are returned.
设置为午夜
If checked “Last Update” is always set to midnight. This only makes sense if “Update Intervall” is set to an multiple of 24 hours. In this way you can display one item per day for instance.
状态
这个软件包是beta版的,但在一些生产站点中使用。