Skip to main content

A widget for composing a Query string/search.

Project description


A z3c.form-based widget for composing a Query string/search.

This widget is used by the contentlisting tile and the dexterity-based version of (>2.0), to make selections, and ‘build’ your query. It stores a list of dictionaries containing the query you’ve build. This query is being parsed by using and that used to display the results in the tile.


If you install plone.formwidget.querystring, you probably want to use it in an add-on product for Plone. Therefore you can add it to the of your package:


You probably want to also use it to the list of dependencies in your generic setup profile (profiles/default/metadata.xml):


Dexterity Widget

To assign the plone.formwidget.querystring widget to a field in your custom content type, you can use a plone.autoform directive in the interfaces definition (

from plone.formwidget.querystring.widget import QueryStringFieldWidget

class IMyDexteritySchema(form.Schema):

    query = schema.List(
        title=_(u'label_query', default=u'Search terms'),
        description=_(u"""Define the search terms for the items you want to
            list by choosing what to match on.
            The list of results will be dynamically updated"""),


  • Kim Chee Leong

  • Ralph Jacobs

  • Jonas Baumann

  • Hanno Schlichting

  • Timo Stollenwerk


1.0b2 (2012-03-19)

  • Fix sort-reversed checkbox javascript. [timo]

  • Move docs/HISTORY.txt to CHANGES.txt to apply to Plone conventions. [timo]

1.0b1 (2012-03-09)

  • Stop hardcoding the field name so it works with other field names and prefixes. [davisagli]

  • Rename ArcheTypesQueryWidget to Querywidget to avoid confusion. [timo]

  • Several JSLint fixes on querywidget.js [timo]

  • Make sure the sorting settings are actually stored on the collection. [timo]

1.0a1 (2011-10-28)

  • Initial release. [ralphjacobs, kcleong, jbaumann, hannosch, timo]

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 (19.3 kB view hashes)

Uploaded source

Supported by

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