Year field settings with min/max and default values
Year dropdown filter settings and exposed filter preview

Year provides a custom, integer-based field to capture only the year part of a date.

⚠️ Future Deprecation

Year is still fully supported, but will someday be deprecated (with migration path) in favor of Year Only.

See #3381046: Eventual Deprecation in favor of Year Only for details and updates.

Features

  • Two included widgets: text field and select list (with sort option).
  • Flexible min, max and default values. Set field constraints and default value using explicit numbers, or relative date strings ('+5 years', 'now', etc.).
  • Dropdown year filter. Enable the year_views sub-module for a custom 'dropdown' views filter with a configurable range of years for more user-friendly exposed filters.
  • Support for Feeds.

Project information

Releases