Skip to content

[5.x] View field selection list on a new (unsaved) Custom Sources duplicates Fields to select #16177

@humandevs

Description

@humandevs

If a Field is added to multiple Entry Types, when a Custom Sources is created (but not yet saved), the Fields will be duplicated in the list of Fields to select for the Custom Sources View columns.

Once the Custom Sources is saved, selecting Fields for the View columns correctly "collapses" those multiple Field instances into one Field/column to select for the View.

Before saving a new Custom Source:
image

Editing an existing Custom Source:
Image

This is in Craft 5.5.0.1, but exists in older version of 5 as well.

Discussed in #16119

Originally posted by humandevs November 14, 2024
The list of fields to add to a Custom Sources view can be confusing as it lists all fields even if a View filter limits the Entry Types to include in that view, and because the same Field can now be used in multiple Entry Types, all of them are listed in the View columns, and there's no easy way to differentiate which Entry Type corresponds to the Field added to the View. Adding the Entry Type to the label for the Field in the View list would solve this issue.

Example screenshot of multiple Fields with the same name but for different Entry Types confusingly presented as options for adding to a Custom Sources view:

image

Even better would be to only need to add the Field column once for all Entry Types Fields that are of the same source Field type, so that multiple columns don't have to be taken up to show contents of Fields of the same source/name but from multiple Entry Types, but that's a whole other can of worms!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions