Search Displays: improve the display of in-place-editable EntityReferences when at rest
This feature request is about EntityReference/foreign-key fields with "in-place edit" turned on in Search Displays.
Let's use this example: a Saved Search for Contacts, where we want to be able to edit a contact's "Current Employer" inline.
Currently:
- "Current Employer Display Name" can be added as a field in the Search Display. However, "In-Place Edit" is not available for it.
- "Current Employer ID" can be added as a field in the Search Display, with "In-Place Edit". "In-Place Edit" and "Rewrite Text" can't be enabled at the same time.
- When the Display is rendered, all "Current Employer ID"s are shown simply as numeric contact ids.
- When you click on one of these numbers, an autocomplete widget appears, allowing you to search by name; choices are shown with name, contact type and contact id.
- When you submit/close the widget, the field goes back to just a number.
It would be great if:
- "Rewrite" could be used in conjunction with "In-Place Edit". That way, the search designer could choose how the value is displayed "at rest" (when not being edited). For example, "Currently Employer ID" could be rewritten with a token for "Current Employer Display Name".
- and, maybe, the search designer could just tick a box to display the "label" field for the referenced entity. This simpler option would disable the "rewrite".