This project is not covered by Drupal’s security advisory policy.

Facet Calendar

Facet Calendar adds a compact, always-visible calendar datepicker to Facets date facets, instead of the usual flat list of date links. It grew out of a real events/activities search where visitors needed to pick a single day quickly, and ships two smaller, independently useful pieces alongside it.

What's included

- Date Calendar widget and processor — a Facets widget that renders a full month grid directly inside the facet block. Clicking a day filters results to that entire day; the calendar stays visible even when the current query returns no date buckets, so the block never disappears. Configurable clear button and optional highlighting of days that have results.
- Translate taxonomy term ID processor — for Facets sources that expose a raw integer field (typically a solr_document datasource with no Drupal entity behind it), this processor resolves the term ID to its label for display, while keeping the raw value intact so the core taxonomy hierarchy processor can still build parent/child trees.
- Day input library (facet_calendar/day_input) — a small, dependency-free JS/CSS library, independent of Facets, that turns a pair of Views "between" exposed-filter inputs into a single-day popup picker using the same calendar look. It attaches to markup you provide, so it drops into any Views exposed form without extra scaffolding.

Requirements

Requires the Facets module. The calendar widget and taxonomy processor target Search API-backed facet sources; the day input library only needs a Views exposed filter form.

Configuration

Enable the "Date Calendar" widget on any date facet from the Facets admin UI; its required processor is enabled automatically. See the module's README for the exact markup contract needed to attach the day input library to a Views exposed filter.

Supporting organizations: 
Development

Project information

  • Project categories: Site search
  • Created by jasa on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases