Rather than relying on a complex field formatter to output a dynamic entity reference field's values, I've had a use case where I want to pick how to output the entity I picked directly where's it's used, which would be in the widget and the display information stored in the field value itself.

Comments

jibran’s picture

Perhaps this is related here #2377841: Allow user to chose per entity type formatter.

I've had a use case where I want to pick how to output the entity I picked directly where's it's used, which would be in the widget and the display information stored in the field value itself

Can you please explain the workflow here? And thank you for creating the feature request.

dave reid’s picture

For example, on my node that contains a dynamic entity reference field:

Field delta 0: Selected node (article) 1, display with 'promotion-large' view mode
Field delta 1: Selected node (article) 2, display with 'promotion-small' view mode
Field delta 2: Selected node (page) 3, display with 'promotion-small' view mode

This wouldn't be possible to use two different view modes if the only way to configure the output of the referenced items was on the field formatted for my dynamic reference field.

luksak’s picture

This feature would be amazing.

attisan’s picture

would still be a very nice thing to have.

attisan’s picture

Version: 8.x-1.x-dev » 8.x-2.x-dev
anybody’s picture

Yes this would truely be amazing. We'll switch back to entity_reference here because we need this functionality.

Modules which implemented this for entity_reference are:

jibran’s picture

I have created a module for these kinds of advance widgets patches are welcome.

anybody’s picture

Hi jibran, thank you very much. Please add a module page link to this issue.

jibran’s picture

jibran’s picture