UNKNOWN
Project description
Introduction
Collections in Plone are the most powerful tool content editors and site managers have to construct navigation and site sections.
This is a brand new implementation of collections for Plone, using ajax/javascript to make a simpler, easier and streamlined user experience for using collections. Having a more lightweight backend that does not depend on many nested criteria types.
It’s designed with simplicity and usability as a main focus, so content editors and site managers can create complex search queries with ease.
How to add your own criteria to a collection
plone.app.collection and (or more precisely the underlying plone.app.querystring) uses plone.app.registry records to define possible search criteria for a collection.
If you want to add your own criteria, say to choose a value from a custom index, you have to create a plone.app.registry record for this index in your generic setup profile (e.g profiles/default/registry.xml):
<registry> <records interface="plone.app.querystring.interfaces.IQueryField" prefix="plone.app.querystring.field.department"> <value key="title">Department</value> <value key="description">A custom department index</value> <value key="enabled">True</value> <value key="sortable">False</value> <value key="operations"> <element>plone.app.querystring.operation.string.is</element> </value> <value key="group">Metadata</value> </records> </registry>
The title-value refers to the custom index (“Department”), the operations-value is used to filter the items and the group-value defines under which group the entry shows up in the selection widget.
Changelog
2.0b2 (2012-08-31)
Item count attribute added to control the number of items in a batch. [timo]
BBB methods added to collection class. [timo]
Remove code to remove the ATContentTypes ‘Topic’ type since this type is not present in Plone 4.2 any longer. [timo]
2.0b1 (2012-03-09)
Remove archetypes-based Topic content type on install. [timo]
Do not hide sort_on and sort_reversed on the field level, since this will break the JS code for sorting in plone.formwidget.querystring. At some point we have to refactor the code to make plone.formwidget.querystring use z3c.form only for sorting. [timo]
2.0a1 (2011-11-13)
Initial release of the dexterity-based version.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file plone.app.collection-2.0b2.zip
.
File metadata
- Download URL: plone.app.collection-2.0b2.zip
- Upload date:
- Size: 40.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fe04425a9edb81e9c8fb0427ba68070b00793e066da8981c1d079dcfb0270e2 |
|
MD5 | c62195d470f07b31ace6f03072e18f92 |
|
BLAKE2b-256 | 0998a776c64dbde0f3c0dbaca397a113bc94c8cccb502001d26da8fdd5b26c25 |