Sometimes I need to create reference field that can reference not only to one entity type, but for many types. For example - reference to commerce_product and node entities. But now in Entity reference field I can select only one entity type.
Will be good to add an option for expose entity type selection into field edit form. So in field settings I can select multiple entity types that will be available, and user select type that he want.
This info can be stored in two fields, target_entity_type & target_id instead of current target_id only.
If this functional is already exists in this or other module, please describe this, if not - will be good to see this feature in future versions.
Comments
Comment #1
rp7 commentedWould love this functionality as well.
Comment #1.0
rp7 commentedFixed typo
Comment #2
Jason Dean commentedThis would be sooo useful :)
Comment #3
vispa commentedPlease develop this ability for entity reference field. I need to this.
Comment #4
ev_DMAC commentedSupport! Would be nice to have this functionality.
Comment #5
greedesign commentedThis functionality would be extremely useful. Especially for things like featured sliders or other call to action components.
eg. Being able to create a slider that links to a featured product, as well as a term page for a product type.
Comment #6
Syntapse commentedsubscribing.
Comment #7
Collins405 commentedSame here, please add! :-)
Comment #8
ehsanamini commentedPrecisely what I need. I want the applicants on my site to choose from a list of organizations (reference to user entity if the organization has a user account on my site or plain text in case the organization is not registered on the site)
Comment #9
pdxgimlet commentedYESSSSS. Exactly what ehsanamini said.
Comment #10
urodriguezpombaPlease support this ¿Someone patch?
Comment #11
tea.time commentedFor reference, this was requested and responded to as "won't fix" a few years back - https://www.drupal.org/node/1292402
Comment #12
Syntapse commentedthe solution we've all been waiting for! https://www.drupal.org/project/entity_reference_multiple
Comment #13
Collins405 commentedI just found this as well!
https://www.drupal.org/project/dynamic_entity_reference
Comment #14
avpaderno