
Hi here.
First of, thank you for this module. It's a great initiative and I hope it will get in core at some point.
I think it would be really useful to be able to use config_views to filter entity_reference fields.
Use case
I want to create a field to display Blocks.
I want to filter the available Blocks by View (Entity Reference).
Step to reproduce
Create a View:
- Create a new config_view to list Block
- On this View, create an Entity Reference display showing at least the Block ID
Create a field:
- Create a new field of type entity_reference
- In field storage, select Block
- In field settings, select "Filter by a Config View"
- In the display mode, change the field widget from "Autocomplete" to be "Select list"
I've attached a draft patch for test and review.
I've only been able to test it for a View of type Entity Reference retrieving Blocks entities.
Comment | File | Size | Author |
---|---|---|---|
0001-Add-ConfigViewsSelection-plugin.patch | 5.95 KB | matthieuscarset | |
config_view_field_storage.png | 61.26 KB | matthieuscarset |
Comments
Comment #2
geoanders CreditAttribution: geoanders as a volunteer commentedComment #3
geoanders CreditAttribution: geoanders as a volunteer commentedComment #4
matthieuscarset CreditAttribution: matthieuscarset as a volunteer and for Appnovation commentedClosing this issue as apparently is won't get fixed.
Comment #5
brad.bulger CreditAttribution: brad.bulger commentedUnless one of the maintainers is saying that this will never be done, closing it as "won't be fixed" after only a year is premature.