Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Get Entity Browser to work with typed relation fields. #111

Open
rosiel opened this issue Nov 7, 2023 · 0 comments
Open

[FEATURE] Get Entity Browser to work with typed relation fields. #111

rosiel opened this issue Nov 7, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@rosiel
Copy link
Member

rosiel commented Nov 7, 2023

Drupal's Entity Browser lets you replace an entity autocomplete by a view. This lets you have extensive sorting and filtering. Example shown here:

Screenshot 2023-11-07 at 10 26 39 AM

However it doesn't work with Typed Relation fields, because the Entity Browser widget is exclusive to Entity Reference fields.

Can we extend the Entity Browser widget so that it works with Typed Relations?

A naive attempt resulted in a partial success, except for its handling of multiple values. As seen below, the Entity Browser widget handles all values as part of a single widget, while the typed relation field, when repeated, causes separate widgets. In the example below, the "creator" entity and the "publisher" entity both show up under both relations - not good.

Screenshot 2023-11-07 at 10 23 21 AM

There are probably other places where this fails. Can we find a way to harmonize these awesome modules?

@rosiel rosiel added the enhancement New feature or request label Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant