Skip to main content

Add to Plone Collection content type the "this month" and "this year" criteria

Project description

Introduction

This product add a two new criteria for dates inside Plone, someway similar to the “Today” ones.

What you can’t do with the default Plone relative criteria is configure a Collection that:

  • show all news published this month

  • show all file modified this year

  • … and so on.

As default Plone “today” criteria, the “this month” and “this year” values are taken automatically.

How to use

The new criteria displays a simple selection between:

  • This year

  • This month

Period of time criteria

New criteria added on Collection

Also, this product will backport the “Today” criteria added on new style collection content type to the old Archetypes based ones.

Period of time criteria (on old collections)

New criteria added on old-style Collection

Requirements

Tested with Plone 4.2 and Plone 4.3.

TODO

  • Fix tests (the few there are GMT+1 specific)

  • Right now the calculation of dates is sometimes crappy.

Credits

Developed with the support of Azienda USL Ferrara; Azienda USL Ferrara supports the PloneGov initiative.

Azienda USL's logo

Authors

This product was developed by RedTurtle Technology team.

RedTurtle Technology Site

Changelog

0.2.0 (2012-12-20)

  • Plone 4.2 compatibility for old and new Collection content type [keul]

  • More pythoninc dates generation, using DateTime native methods [keul]

  • Added a proper uninstall profile (it works only partially, and only on Plone 4.3) [keul]

  • Support for “Site Administrator” role [keul]

0.1.0 (2011-02-16)

  • first release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collective.periodcriterion-0.2.0.zip (28.7 kB view details)

Uploaded Source

File details

Details for the file collective.periodcriterion-0.2.0.zip.

File metadata

File hashes

Hashes for collective.periodcriterion-0.2.0.zip
Algorithm Hash digest
SHA256 a417c5a2528759b5cc66504c93684d51e19103324c42a1f9662ea09529865c5e
MD5 4526968698cb959b147aeda5137267f1
BLAKE2b-256 bc8b190a2e151795547cbb7c84050fcb862b29228440bbba22c0f515a74f6fa8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page