Allow users to choose what contact details are shown when inserting contacts in TinyMCE #3258
Labels
effort: medium
Should be doable in <12h
feature
New feature or request
prio: high
Needs to be resolved ASAP.
Milestone
Motivation
Requirement
Proposed Solution
Idea: use URL parameters to influence what fields are contained in the rendered contact card returned by the
get_contact
endpoint.email
andname
are checked, append something like?details=email,name
to the contact URL.contact_card
template to check for the presence of the field names in thedetails
list, rendering only the present entriesIt's probably a good idea to use this opportunity to refactor the
update_contacts
function to query theget_contact
endpoint instead of callingrender_contact_card
.This solution retains the contact URL as the single source of truth for the rendered contact cards, and #3169 has layn the foundation for making this a relatively easy-to-build feature.
Alternatives
Nothing simpler IMO
User Story
As an editor/author, I might want to include only certain contact details (for example: only name and phone number in cases where readers should make inquiries by phone, in order to dissuade them from using unsupported channels).
Design Requirements
I don't think so, a vertical stack of checkboxes & labels should be completely functional.
Related Issues
Depends on:
The text was updated successfully, but these errors were encountered: