Problem/Motivation

I am using Advanced Insert View to embed a view with arguments that are dates and terms. In the Add or select view UI, the date fields show with machine names (e.g. media.field_document_date) whereas the term entity reference field gets a human readable label.

Steps to reproduce

Create a view that has contextual filters using a date field (e.g. "Date in the form of YYYY.") and term reference field. Note that when inserting the view via Advanced Insert View the date field has machine name whereas term reference field gets a human-readable label.

Proposed resolution

Ensure all core fields, including Date, get a human-readable label in Advanced Insert View UI.

Remaining tasks

User interface changes

Comments

jonathan_hunt created an issue. See original summary.

jonathan_hunt’s picture

Title: Not all feild types get human-readable labels » Not all field types get human-readable labels
a.dmitriiev’s picture

As far as I remember the human readable label is added to the fields that are only in 1 bundle. The reason why this is like this is the following: the field instance exists per bundle and the label per bundle can be different. The filter in the view doesn't really know (and doesn't really care) for which bundle it is, so it has no information about the bundle the field belongs to. As there might be different labels per bundle, which one would you like to see in this case?

I guess in case the label is the same for each bundle the field is attached to, the label can be still show, this can be fixed. What are your suggestions for the case the field has different labels? show the bundle label in brackets? Or list them all? Not sure which one would be good UX

a.dmitriiev’s picture

Status: Active » Needs review
a.dmitriiev’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.