Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

pypm install collective.blog.view

How to install collective.blog.view

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install collective.blog.view
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.5.1Never BuiltWhy not?
1.4 Available View build log
1.3 Available View build log
1.2 Available View build log
Windows (64-bit)
1.5.1Never BuiltWhy not?
1.4 Available View build log
1.3 Available View build log
1.2 Available View build log
Mac OS X (10.5+)
1.5.1Never BuiltWhy not?
1.4 Available View build log
1.3 Available View build log
1.2 Available View build log
Linux (32-bit)
1.5.1 Available View build log
1.4 Available View build log
1.3 Available View build log
1.2 Available View build log
Linux (64-bit)
1.5.1 Available View build log
1.4 Available View build log
1.3 Available View build log
1.2 Available View build log
Depended by
Lastest release
version 1.5.1 on May 31st, 2013


This view will display the contents of the objects in a folder and the number of comments, useful for a blog view. Default views for archetypes content is included, and you can easily create custom views for your content, by simply calling it blog_item_view.

It supports Plone 4. Plone 3 is not officially supported, but should still work.

The development of collective.blog.view was sponsored by the Bergen Public Library - http://www.nettbiblioteket.no

Using collective.blog.view

All you need to use it is to add it to the dependencies of your Plone setup in one way or another, and include the zcml.

After this the blog view can be seen by simply adding /blog_view to the end of a folder or collection.

Although collective.blog.view doesn't need any installation, there is a profile included. If you install this view you get Blog View as a view option for all folders anc collections, easily turning any folder into a Blog with a simple click of the button. It will also create the blog_view_items and blog_types property, see below.

Installing this profile will override any changes you have done to the view methods of Folder, Large Plone Folder and Collections. It's generally not recommended to install the profile on a heavily customized site, it's better to make the changes manually, they are few and simple.


collective.blog.view has only two settings. They are both in portal_properties.site_properties.

  • blog_view_items: This integer property will be used as the number of items to show per page in the blog view. If it does not exist, it will default to ten items.
  • blog_types: This lines property will be used to contain the portal_types that are considered entries in the blog. If it does not exist, it will default to Document, News Item and File. It's ignored when you use the blog view on a collection, all items in the collection will then be considered blog items.

collective.blog.view is functional out of the box. But it is not pretty. Attempts of making it pretty with a standard Plone site is likely to be wasted, as most Plone sites tend to have their own content types and their own skins. So I'm not going to add extra complexity and potential for confusion in this case, since it's likely to not be used anyway.

To make the blog view look great on your site, you will most likely want to create custom entry views for your content types. Simply create a view (Zope 3- style) for your content type and call it blog_item_view. There you return the HTML you want, without HTML and BODY tags, just the HTML snipped you need.

The default views includes the "Send This / Print This" links, and if you are logged in also the History of th object. This is because the default view will use the default ATContentTypes views and their "main" macro. For Archetypes Content that are not standard ATContentType, the base_view will be used. If you are using standard content types, you might want to make custom views for these too. The procedure is the same.

Lastly, to make it prettier, adjust your css for the blog-listing, blog-item and comment-link DIVs, so it looks good on your site.

What this product do not have

There is no Plone Control Panel in this product, nor will there ever be one, so you need to change the settings through the ZMI. There will also never be any per-folder settings, as that would require extending the schema for folders or have a dedicated blog type, both which will defeat the main goal of this product: simplicity and flexibility.

A Plone Control Panel may make sense, but will in that case end up in a separate product, and installed separately.

This product will never use doctests to test anything besides documentation.


1.5.1 (2013-05-27)
  • Changed the "Blog View" to "Blog view", and made sure it worked on collections.
1.5 (2013-05-27)
  • Updated Spanish translation [macagua]
  • Added improvements about i18n [macagua]
  • Added support for locales and translation for blog_view template [cekk]
  • default_item view now uses effective view of the object, and not a base view based on portal_type [cekk]
  • Added back the base views based on portal_type as backup, as they work. [regebro]
  • If the found view macro fails, there is now a fall back to just showing a "View More.." link. [regebro]
  • Use standard main_template definitions to get more standard templates macros to work. [regebro]
  • Added the title to the blog view, and also a message if there are no posts in the blog view. [keul, mauritsvanrees, regebro]

This version has been tested with Plone 4.0.10, 4.1.6, 4.2.5, 4.3. Plone 3 may still work, but is untested and unsupported.

1.4 (2012-01-06)
  • Added a condition on the description that made it possible to use portal root as a blog folder. Fix by T. Kim Nguyen. [regebro]

This version has been tested with Plone 4.0.10, 4.1.3, 4.1.4, 4.2b1 and 4.2b2. Plone 3 is no longer supported, but should still work.

1.3 (2010-10-27)
  • The view_methods attribute is no longer clobbered on install. [regebro]
  • Fixed XML nesting so blog_type property gets added properly to site_properties. [jbaldivieso]
  • Fatsyndication should not be a dependency of c.b.view, but c.b.feeds. [regebro]
1.2 (2010-06-30)
  • import Batch directly from PloneBatch since with Zope 2.13 Batch is not available at the package level when collective.blog.view is loaded. [vangheem]
  • Forced reverse sorting in the view. [regebro]
1.1 (2010-06-05)
  • collective.blog.feeds needed a setting for portal_types, so for consistency collective.blog.view now uses the same setting with the same default. [regebro]
  • It now shows the amount of comments each entry has, if it has comments enabled. [regebro]
  • The view now accepts year and month parameters (in the url or form) and then restricts the entries to these dates. This means the view now also can work as an archive view. [regebro]
  • Added credits to Bergen Offentlige Bibliotek. [regebro]
  • Plone 4 support. [regebro]
  • Make use of the typesUseViewActionInListings site property. [regebro]

This version has been tested with Plone 3.3.4 and Plone 4.0b3.

1.0 (2010-05-14)
  • Initial release

This version has been tested with Plone 3.3.4.

Subscribe to package updates

Last updated May 31st, 2013

Download Stats

Last month:2

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.