This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Shows a definable filter portlet that allows to filter search results

Project Description

collective.portlet.filtersearch

This package defines a portlet that shows additional filter of current search results. The filtering works in two modes.

  1. Results grouped by a simple index/value
  2. Additionally group by unique values of selected criteria

Installation

To install just add a collective.portlet.filtersearch to your buildout file:

[buildout]
...
eggs =
    collective.portlet.filtersearch
    ...

Package uses z3c.autoinclude so there is no need to add it into your zcml section.

Restart your zope instance and install it via Add/Remove product in Plone control panel.

Setting

In the portlet edit form you can define which filters should appear in the portlet:

Criteria title - The title of criteria displayed in the portlet
Main index - Name of index which is used to group it ( it has to be in metadata too )
Value - The value of the index that the brain has to match to group

And additional values:

Expand list with unique values - Check box to enable the sub filtering
Sub index - Name of index which is used for listing unique groups dynamically

You can add as many criteria as you like

Hint: To enable the portlet at the search template, just add it to your site root and remove the line <metal:block fill-slot=”column_two_slot” /> to enable portlets at all.

TODO

  • How to determine when display the portlet and when hide - fix the available property
  • Add some tests would be nice

Changelog

0.3 (2010-01-15)

  • Fixed weird behaviour of session by storing request.form within it

0.2

  • Changed behaviour so the portlet remebers the first search

0.1 (unreleased)

  • Initial release
Release History

Release History

This version
History Node

0.3

History Node

0.2

History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
collective.portlet.filtersearch-0.3.zip (23.6 kB) Copy SHA256 Checksum SHA256 Source Jan 15, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting