Change configuration structure for CE display 'components'

Created on 18 June 2024, 10 days ago

Problem/Motivation

CE displays's components are currently indexed by field name, This has drawbacks:

It is not possible to add two formatters outputting different fields, based on the same value. One example where this might be good: a URL with embed code and a thumnail, for a video field. (There's no reason why this should necessarily be done by one and the same CE field formatter that sets several properties.

It is possible to add several formatted fields that have the same "name", leading to duplicate properties being set (i.e. overwritten) by different formatters. (Strictly, we are not in control of the "name" used, but custom code from every formatter is. Still, enforcing a unique "name" is overall reasonable/logical.)

Not all values need to be set based on a single field's value: There are plans for:

Proposed resolution

Key the components by "configured name", not field name.

Remaining tasks

Do it.

Probably: change/add proper config schema, or leave to πŸ“Œ Re-add proper config-schema and test coverage Active / the related issue.

If quick and easy (I really don't know yet): add backward compatibility loading for already present 'alpha1 style' configuration. (That's being used in several places in an internal project.)

Re-save the config exports in the custom_elements_thunder module.

Dependency

The UI changes needed get a lot easer after πŸ“Œ Simplify entity-ce-display form and AJAX logic Active is done.

πŸ“Œ Task
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands roderik Amsterdam,NL / Budapest,HU

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024