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.

Download
ActivePython
INSTALL>
pypm install collective.portlet.ngcollection

How to install collective.portlet.ngcollection

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install collective.portlet.ngcollection
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.2
1.3.1Never BuiltWhy not?
1.2 Available View build log
1.1 Available View build log
1.0 Available View build log
Windows (64-bit)
1.2
1.3.1Never BuiltWhy not?
1.2 Available View build log
1.1 Available View build log
1.0 Available View build log
Mac OS X (10.5+)
1.2
1.3.1Never BuiltWhy not?
1.2 Available View build log
1.1 Available View build log
1.0 Available View build log
Linux (32-bit)
1.2
1.3.1Never BuiltWhy not?
1.2 Available View build log
1.1 Available View build log
1.0 Available View build log
Linux (64-bit)
1.3.1 Available View build log
1.2 Available View build log
1.1 Available View build log
1.0 Available View build log
 
Author
License
GPL
Dependencies
Lastest release
version 1.3.1 on Jan 9th, 2014

Introduction

This package provides portlet which extends plone collection portlet in order to allow assigning different views for each newly created portlet through it's edit form.

This is often required to have many collection portlets displaying different information in different places. Plone portlets provide us with portletRenderer directive which in general is really usefull, but it's not an option because it overrides portlet renderer globally thus allowing to have only one template at a time.

Thus to avoid having some odd conditions in your collection portlet's template NGCollection extends standard plone collection portlet with a template field where you can select template to use from available templates.

Apart from the 'template' field NGCollection portlet also adds 'show_more_label' field. This field is here to override default collection's portlet 'More...' link text with some custom one entered by user.

Portlet Templates

In order to register new alternative templates for your portlet this package provides portletTemplates directive:

<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:plone="http://namespaces.plone.org/plone">

  <include package="collective.portlet.ngcollection" file="meta.zcml" />

  <plone:portletTemplates
      interface="path.to.some.portlet.assignment.Interface"
      directory="alternative_templates"
      />

</configure>

In this example we register templates contained inside alternative_templates folder as alternative templates available for path.to.some.portlet.assignment. Interface portlet. Thus you'll be able to select one of them on portlet edit form via Plone interface.

You can register more than one directory for your portlet.

This idea with registering directories with custom templates was highly inspired by z3c.jbot package.

Contributors
  • Vitaliy Podoba
  • Roman Kozlovskyi
  • Volodymyr Cherepanyak

Changelog

1.3.1 (2013-02-12)
  • Fixed unexpected keyword argument error [kroman0]
1.3 (2013-01-17)
  • Fixed compatibility with Plone 4.3.x [kroman0]
1.2 (2012-01-23)
  • Fixed import deprecation and removed unused imports [mborch]
1.1 (2011-08-19)
  • fixed filesystem path binding [mylanium]
1.0 (2011-08-08)
  • long overdue release
0.1 (xxxx-xx-xx)
  • Initial release

Subscribe to package updates

Last updated Jan 9th, 2014

Download Stats

Last month:3

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.