Add "default" option to all selects, which is defined in code (and remove entity type specific field widget defaults)

Created on 5 April 2022, over 2 years ago
Updated 8 March 2024, 8 months ago

Problem/Motivation

Currently we use Drupals field settings to set default values by paragraph bundle, for example:
Padding top+bottom large, for the layout paragraph bundle.

The problem is: We are not able to change those values centrally after contents are created, the "defaults" are stored as regular values in the database.

Proposed resolution

The 100% solution would be a select, tabs, whatever.. to select a paragraph bundle.
Beyond this select, the paragraph settings related to the selected bundle. These settings are the source for our currently hardcoded default values.

If possible, we should add a warning + link to the Drupal cores default value configuration in the drowl_paragraph_settings field settings.

However, this solution will bloat the settings with a huge amount of fields. We may need a smarter solution here.
Maybe some kind of key|value textarea.. or some dynamic form widget, some kind of a combined field:

paragraph-bundle (reference, select) | drowl-paragraph-settings-field (reference, select) | value select (whatever is possible.. maybe we are able to get the referenced fields type.. and create an input according to this on the fly.. or we always create an text input and rely on the skills of the admin/user.

Ideas welcome..

Feature request
Status

Active

Version

1.0

Component

Miscellaneous

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024