Postponed
Project:
Entity reference
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
7 Jun 2013 at 13:45 UTC
Updated:
19 Oct 2014 at 21:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jkuma commentedThis is an attempt to solve this feature request. This patch only tackles the textfield form element.
The items bellow describes the list of accepted parameters for the '#entityreference' property:
type: (optional, default: tags) [single|tags]
handler: (optional, default: base) the entity_reference handler.
target_type: the target entity type.
handler_settings: (optional) An array of handler settings such as target_bundles, sort and auto_create.
This is an exemple of implementation:
Comment #2
jkuma commentedComment #3
jelle_sPatch looks good, tested with crm_core_contact entities and works as expected.
Comment #4
damien tournoud commentedComment #5
jelle_s@Damien: what work needs to be done to this patch?
Comment #6
damien tournoud commentedI'm going to postpone this to 2.x.
In the need work:
- the access control of the autocomplete needs to be figured out. In the current version of the patch access control is wide open which is not desirable. At the minimum we should add a signed token in the URL
- we should decouple the selection handler from the field system, which we can do in 2.x only
Comment #7
slv_ commentedJust wanted to reference #2029567: Move the functionality to Entity refenrence?, to say that I'll be happy to give a hand to make this happen in a D8 release of the module.
Best regards,
Salva.