提供显示随机项目的组件。
raptus.article.randomcontent的Python项目详细描述
简介
提供显示随机项目的组件。
此软件包提供了raptus.article的以下功能:
成分
- Random content (Random article with it’s image displayed over the whole width)
- Random content left (Random article with it’s image displayed on the left side)
- Random content right (Random article with it’s image displayed on the right side)
- Random content teaser (Random article with it’s image displayed over the whole width and displayed above the columns)
依赖性
- raptus.article.nesting
安装
要将raptus.article.randomcontent安装到plone实例中,请找到文件 在文件系统上plone实例目录的根目录中buildout.cfg, 在文本编辑器中打开它。
将实际的raptus.article.randomcontent附加组件添加到 buildout.cfg.查找如下所示的部分:
eggs = Plone
如果已经有其他加载项,则此部分可能还有其他行 安装。只需在单独的行上添加raptus.article.randomContent,如下所示:
eggs = Plone raptus.article.randomcontent
注意,您必须像这样运行buildout:
$ bin/buildout
然后以管理员的身份转到plone中的“附加组件”控制面板,然后 安装或重新安装“raptus.article.default”产品。
注意,如果不使用raptus.article.default包,则必须 添加raptus.article.randomcontent的zcml 到构建中的zcml列表或将其包含在另一个包的 配置.zcml。
用法
组件
导航到文章的“组件”选项卡并选择其中一个随机内容 组件并按“保存并查看”。请注意,必须至少包含一条 在该组件处于活动状态的文章中。
版权和信用
raptus.article受Raptus AG版权所有,并根据GPL授权。 有关详细信息,请参见license.txt。
开发人员手册
注意:您可以在 raptus.article.core。 如果你需要更多的信息,请看看那里。
代码概述
成分
内容体上方的扑通声
- raptus.article.randomcontent.left
- raptus.article.randomcontent.right
- raptus.article.randomcontent.full
plone.portaltop
- raptus.article.randomcontent.teaser
接口
文件:interfaces.py
- irandomcontent(随机文章的提供者)
- getarticle-method(返回随机文章(catalog brain))
- irandomcontent(随机文章的提供者)
- getarticle-method(返回随机文章(catalog brain))
架构扩展程序
文件:extender.py
- ArticleExtender-用于iArticle
更改日志
2.0b5(2010-11-10)
- 增加了法语翻译
2.0b4(2010-10-24)
- 将zip_safe flag设置为false
2.0b3(2010-10-21)
- 更新了自述文件和手册
2.0b2(2010-10-20)
- 首次公开发行