Skip to content

collective/collective.z3cform.select2

Repository files navigation

https://travis-ci.org/collective/collective.z3cform.select2.svg?branch=master https://coveralls.io/repos/collective/collective.z3cform.select2/badge.png?branch=master

collective.z3cform.select2

Features

  • select2 multivalued facetednavigation widget for 2-level vocabulary created with collective.taxonomy. Select "Select2" criteria in facetednavigation and select a taxonomy.
  • select2 multivalued z3c.form widget that works nice with 2-level vocabulary created with collective.taxonomy

If you want to use the select2 widget instead the default z3cform widget for List/Set of Choice, just include file widget/adapters.zcml in another package policy like this :

<include package="collective.z3cform.select2.widget" file="adapters.zcml" />

Theming

The widget was developped initially for a bootstrap 3 theme and fontawesome. There is a search button icon left to the select that upon click open the select. If your site doesn't have a bootstrap based theme, you may want to add this css rule to your project to hide the tiny button:

button[data-select2-open] { display: none; }

The z3cform widget in display mode uses the badge class, without a comma separator so it may be confusing when you don't have style for the badge class. You can revert to a comma separated display by including minimal.zcml instead of configure.zcml, see Installation below.

Translations

  • One constant Faceted.taxonomyAllString currently in French.

Installation

Install collective.z3cform.select2 by adding it to your buildout:

[buildout]

...

eggs =
    collective.z3cform.select2
zcml =
    collective.z3cform.select2
    # or collective.z3cform.select2-minimal

and then running bin/buildout

You need to install the collective.z3cform.select2 addon to register the select2 js library. In a facetednav, add a Select2 criterion.

eea.facetednavigation

Version 2.0.0+ is only working with eea.facetednavigation 10+. If you need to make it work with eea.facetednavigation < 10, use versions < 2.0.0

Contribute

Support

If you are having issues, please let us know.

License

The project is licensed under the GPLv2.

About

select2 widget for z3c.form and eea.facetednavigation

Resources

Stars

Watchers

Forks

Packages

No packages published