cmfcontentpanels是一个plone portlets产品,用于构建复合页面

Products.CMFContentPanels的Python项目详细描述


概述

Products.CMFContentPanels is a Plone product to build manageable composite pages.

You can create new content object which is composed of other contents as configurable ‘content panels’. You can change the layout, the panel skin and the content viewlet through the web. There is no need to use special content objects, you can just use the standard plone content and compose them

功能

  • Support multi-page and multi-column
  • fully functional layout management, easy to use: move panels left/right/up/down
  • predefined viewlets for Document, Image, Folder, Topic, ZWiki Page, PloneChat, mxmDynamicPage.
  • each viewlet is configurable. it is quite easy to add new viewlets. You can add a RSS viewlet or a simplet text viewlet.
  • contentpanels content can be used as a portle thru collective.portlet.content.
  • support multi-rows: use ‘tile’ page layout mode, and each page becomes a new row!

安装

To use this product, on a buildout based installation:

  1. Edit your buildout.cfg and add ^{tt1}$ to the list of eggs to install

    [buildout]
    ...
    eggs =
        Products.CMFContentPanels
    

更新配置文件后,需要运行“bin/buildout”, 它将负责更新您的系统。

进入Plone界面的“站点设置”页面,点击 “添加/删除产品”链接。

选择产品(选中其复选框)并单击“安装”按钮。

卸载-这可以在同一个管理屏幕上完成,但仅限于 如果是从快速安装程序安装的。

扩展products.cmfcontentpanels(针对开发人员)

新视图

Viewlet is a view of content which can be selected in contentpanels. Viewlet can be a zpt or a zpt macro. Viewlets are registered with CMF Action mechanism.

  1. Write a viewlet for your content. You can refer to stuff at ‘CMFContentPanels/skins/cp_viewlets’, where are default viewlets.

  2. All viewlets are registered in portal_contentpanels. You can also register viewlets using:

    from Products.CMFContentPanels import registerViewlets
    registerViewlets(you_viewlets)
    

    With this way, if you reinstall CMFContentPanels, your viewlets configuration will not lost.

如何使viewlets可配置

  1. Viewlet configuration form fields can be define in a macro with name: ‘(your_viewlet_macroname)_viewletconf’

    For example, ‘viewlets_folder_recent.pt’ has 2 macros: ‘base_portlet’ and ‘base_portlet_viewletconf’

  2. The form fields will be showed and saved automatically

  3. Your viewlet can use the form variables in a dict named ‘viewletOptions’, for example ‘viewletOptions[“itemCount”]’

如何添加新的面板外观

You can define a new css wrapper to define a new panel skin:

  1. Customise contentpanels_skin.css.dtml, write your new css wrapper there
  2. Go to ZMI ‘portal_contentpanels’, in the properties view, add your new wrapper there.

学分

错误报告和功能请求

In the “Products.CMFContentPanels product area”: http://plone.org/products/cmfcontentpanels you can report bugs and request new features.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Spring数据JPA+Hibernate在不首先找到父实体的情况下保存子实体   php Java:如何从CLI接收命令   spring为java中的导出数据创建访问文件   java在Windows 8.1上安装Play Framework   java Spring启动白标签错误页面(类型=未找到,状态=404)   java如何在单击时从数组中绘制?   java fn:substringAfter()上次出现   java在IFR语句中使用方法返回   java onPause()或onStop()的名称   对关联对象的关联对象具有条件的java HQL查询   java只打印一次总值,无需迭代   java如何使用抽象Uri buildOn()方法?   如何在Java中执行sudo命令并获得错误输出?   java反射:避免对getConstructor(类<?>…)的未经检查的警告调用作为原始类型类的成员   Java:如何从类中创建的对象调用类方法?   java如何在电子邮件中嵌入图像?   java如何在Android上启用详细GC?   java什么是串行版本id?