Include field label in "Dropdown Filter" name

Created on 30 July 2024, 9 months ago
Updated 13 August 2024, 9 months ago

Problem/Motivation

All "dropdown filters" provided by the year_views submodule have the same name "Year (Dropdown Filter)". If there is more than one year field, a seemingly duplicate "Year (Dropdown Filter)" appears for each, making it difficult (impossible) to tell which filter acts on which field.

Proposed resolution

Include the field name in each filter title. In year.module, line 41:

'title' => t('Year (Dropdown Filter)'),

Should be something like:

'title' => t('@name (Dropdown Filter)', ['@name' => $field_data['title']]),

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States justcaldwell Austin, Texas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024