Skip to main content

Sorted listings in Plone

Project description

Plone Collection type is a very flexible way to aggregate content from your site. It supports querying the catalog together with sorting the results according to an sortable index (modified date, title, etc.).

Sometimes you need a customized sorting of the results. Think of a folder with many person content items in it and you want to display it with sorting A in one place of your site and with sorting B in another place of a site.

This is where this addon steps in. It allows to sort the results of a collection query on the collection/listing itself. It is done by the editor.

Features

If you install a package it will provide a custom contenttype (SortableCollection) which has the same features as the standard Collection type and additionally allows the sorting of the results in the preview section with drag&drop.

The contenttype makes use of a behavior (SortableCollection) which can be used by custom contenttypes.

If you have Mosaic installed the addon provides the Sortable Contentlisting tile which inherits from the Contentlisting tile from plone.app.standardtiles with the additional sorting features.

Examples

Sortedlisting demo video

Installation

Requirements: Plone 5.1

Install collective.sortedquerystring by adding it to your buildout:

[buildout]

...

eggs =
    collective.sortedquerystring

and then running bin/buildout

Development

https://travis-ci.org/collective/collective.sortedlisting.svg?branch=master https://coveralls.io/repos/github/collective/collective.sortedlisting/badge.svg?branch=master

Build mockup (only Plone 5.1b4 and below)

$ bin/plone-compile-resources -s Plone -b plone
$ bin/plone-compile-resources -s Plone -b plone-logged-in

Build resources

$ bin/plone-compile-resources -s Plone -b sortablequerystring

Contribute

License

The project is licensed under the GPLv2.

Contributors

Changelog

1.0a3 (2017-11-08)

  • Don’t limit results for sorting

  • Enhance drag & drop layout [adrianschulz]

1.0a2 (2017-09-07)

  • Fix tests / static code analysis and stream demo video from Youtube [tomgross]

1.0a1 (2017-09-07)

  • Initial release. [tomgross]

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.sortedlisting-1.0a3.tar.gz (29.1 kB view details)

Uploaded Source

File details

Details for the file collective.sortedlisting-1.0a3.tar.gz.

File metadata

File hashes

Hashes for collective.sortedlisting-1.0a3.tar.gz
Algorithm Hash digest
SHA256 a9376d2ec08fcae9962f967e303c54785ca2bce0a1f6293e2b65d5297b282a51
MD5 1dc2b07c0cd4bfd64b242e21f8be5a0f
BLAKE2b-256 c0a31a3a80cc7995a4b5fe3e0e7e4f469c422e723f04360bc710ce3b3d5f7a42

See more details on using hashes here.

Provenance

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