产品视图。用来自collective.contentLeadImage的图像显示内容的拼贴
collective.collage.contentleadimage的Python项目详细描述
简介
此产品允许在 一个拼贴的环境,在一个公共场所。
仅显示文件夹或集合的典型summary视图 图片对于新闻项,是唯一可以分配图片的默认类型 到。这个包使用了现有的“文件夹引导图像视图” collective.contentleadimage并显示拼贴中的内容两者 文件夹和集合(主题)可以将此新拼贴视图应用于 他们。
用法
使用buildout或类似方法安装此产品,然后启动 你的Plone实例zcml配置将自动获取 并为您的拼贴内容注册这些附加视图。
您应该在站点上安装collective.contentleadimage,以便 这些拼贴视图很有用将一些潜在客户图像分配给内容将 也有必要利用这些观点发挥其潜力。
设置布局
- 创建拼贴。
- 根据所述拼贴添加行和/或列。
- 将文件夹或集合添加到拼贴。这可以是实际的 内容或别名。
- 在拼贴的compose页面中,找到 你刚刚添加的内容。点击这个
- 选择summary(lead images)将显示新布局。
- 将潜在客户图像分配给内容,使其显示在此布局中
待办事项
- 一些单元测试
安装
- 将collective.collage.contentleadimage添加到要安装的鸡蛋列表中,例如:
[buildout] ... eggs = collective.collage.contentleadimage
- 如果您使用的plone版本早于3.3,请告诉plone.recipe.zope2instance recipe安装zcml slug:
[instance] recipe = plone.recipe.zope2instance ... zcml = ... collective.collage.contentleadimage
许可证
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.