Skip to main content

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.5 (2015-10-27)

  • Fixed compatibility with Plone 5 [kroman0]

1.4 (2013-08-16)

  • Added z3cform portlet edit support [kroman0]

1.3.2 (2013-05-02)

  • Added French translations from transifex, thanks Marc Sokolovitch [kroman0, msoko]

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

Metadata

Release files for collective.portlet.ngcollection 1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for collective.portlet.ngcollection 1.5
File Size Uploaded
collective.portlet.ngcollection-1.5.zip 42.0 kB Details

Release files / collective.portlet.ngcollection-1.5.zip

Download URL collective.portlet.ngcollection-1.5.zip
Size 42.0 kB
Tags Source
SHA-256 checksum
How to use checksums
cfc0c9f30301ed461a4b04d45e1da818e331528909ad1bf5c2e9cd171a963500
BLAKE2b-256 checksum
How to use checksums
836caa3d5c3446f76bf765d9766790c0cbd7396582d4a57dfad7866784891567
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.5 This release

1 release file

1.4

1 release file

1.3.1

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page