Improve Datetime and Daterange Views contextual grouped filter names

Created on 11 January 2017, almost 8 years ago
Updated 26 February 2023, almost 2 years ago

Problem/Motivation

When you create a contextual filter in Views for a datetime or daterange field, you see field like

node.field_date_only (full_date)
node.field_date_range:end_value (day)

for grouped filters. This is unintuitive and inconsistent with how other filed types are displayed, eg

Image (field_image:height)

Proposed resolution

Update datetime_type_field_views_data() to be consistent with other filter text, and build the title using the same method as views_field_default_views_data().

Remaining tasks

Patch
Add tests
Review
Up to date screenshots available from 'User interface changes'

User interface changes

TBA before and after screenshots

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

9.5

Component
DatetimeΒ  β†’

Last updated 6 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States mpdonadio Philadelphia/PA/USA (UTC-5)

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024