@eeacms/volto-doublerange-facet

0.1.2 • Public • Published

volto-doublerange-facet

Releases

Pipeline Lines of Code Coverage Bugs Duplicated Lines (%)

Pipeline Lines of Code Coverage Bugs Duplicated Lines (%)

Volto add-on

Features

This addon let's you configure a double range facet in the Volto Search Block.

This allows you to build a year range selector for instance.

This facet requires to have the value indexed as a FieldIndex in the Plone backend.

At this moment the values need to be indexes as strings in the Plone backend. We will be working on supporting also values indexed as ints in the backend.

When configuring the facet, it allows to define the step in which the range will be moved up and down and it automatically detects the lower and highest values of the range.

Images

full range

lower range

both ranges

Getting started

Try volto-doublerange-facet with Docker

  git clone https://github.com/eea/volto-doublerange-facet.git
  cd volto-doublerange-facet
  make
  make start

Go to http://localhost:3000

Add volto-doublerange-facet to your Volto project

  1. Make sure you have a Plone backend up-and-running at http://localhost:8080/Plone

    docker compose up backend
  2. Start Volto frontend

  • If you already have a volto project, just update package.json:

    "addons": [
        "@eeacms/volto-doublerange-facet"
    ],
    
    "dependencies": {
        "@eeacms/volto-doublerange-facet": "*"
    }
  • If not, create one:

    npm install -g yo @plone/generator-volto
    yo @plone/volto my-volto-project --canary --addon @eeacms/volto-doublerange-facet
    cd my-volto-project
    
  1. Install new add-ons and restart Volto:

    yarn
    yarn start
    
  2. Go to http://localhost:3000

  3. Happy editing!

Release

See RELEASE.md.

How to contribute

See DEVELOP.md.

Copyright and license

The Initial Owner of the Original Code is European Environment Agency (EEA). All Rights Reserved.

See LICENSE.md for details.

Funding

European Environment Agency (EU) ter/LICENSE.md) for details.

Funding

European Environment Agency (EU)

Package Sidebar

Install

npm i @eeacms/volto-doublerange-facet

Weekly Downloads

7

Version

0.1.2

License

MIT

Unpacked Size

31.7 kB

Total Files

28

Last publish

Collaborators

  • nileshgulia1
  • valentinab25
  • demarant
  • avoinea
  • tiberiuichim
  • zotya
  • alecghica
  • eea-jenkins
  • razvan.miu
  • ichimdav