You are here: Home Plone products collective.formcriteria

collective.formcriteria (1.1.1)

1
by Olha Pelishok last modified 2009-09-11
0.0
0.0
0.0
0.0
Released on 2009-08-31 by Ross Patterson for Plone 3.0 under GPL - GNU General Public License available for All platforms.
Software development stage: stable
Add forms for user enterable search criteria to collections.

This package extends the Products.ATContentTypes.criteria types to create a search forms. Specifically, any criterion fields which are selected in each criterion's "Form Fields", then those fields will be rendered on the search form. The values set on the criteria edit form become the default values on the search form. Search terms submitted through the search form supplement any criteria not on the search form. IOW, criteria not appearing on the form become the base query built into the search form.

A new "Search Form" display layout is provided that renders the search form and the collection body text but no results. The search form on this layout will display results using the layout specified in the "Form Results Layout" field of the collection's edit form.

The search form can also be rendered in a search form portlet based on plone.portlet.collection. The portlet will not render on the search form view or the criteria edit form but otherwise will render the search form for the designated collection according to the portlet settings.

Thus the collection can use either the search form or a results listing as the display layout. Users can initiate searches using either the form or the portlet. The portlet also reflects any submitted search terms and thus provides a convenient way for users to refine their searches.

Multiple sort criteria can also be added that will render user selectable sort links on the batch macro. See collective/formcriteria/criteria/sort.txt for more details.

Also provided is an alternative display layout that uses the folder contents table. This layout is not yet fully functional but provides the basis for some very rich site admin functionality.

Document Actions
Powered by Plone