Provide new site settings loader that uses manage display, etc rather than flattening

Created on 21 October 2023, 8 months ago
Updated 6 November 2023, 8 months ago

Problem/Motivation

The flattening approach works fine for simple label fields like credits, etc, but it has caused problems breaking from standard Drupal architecture as this module gets more usage.

Proposed resolution

Would suggest instead we have a loader that renders site settings entities in a standard way, respecting manage display.

It then cannot inject the site settings to every template, so keeping with the goal of the module to add labels very simply to eg footer, header, other regions where site settings are useful, suggest we add a Twig Filter and make that the recommended way. Similar to what Twig Tweak offers but without the dependency on that module perhaps, or it could be a dependency of that loader?

Remaining tasks

Follow-up issues

  1. https://www.drupal.org/project/site_settings/issues/3398584 ✨ Remove _entity from site settings entity type IDs Postponed
  2. https://www.drupal.org/project/site_settings/issues/3399190 ✨ Hide "Disable auto-loading" in site settings configuration if not allowed Fixed

User interface changes

Site settings config form allows choice of loader

Data model changes

Multiple site settings loaders will be available + developers can optionally override/provide their own.

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom scott_euser

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

Comments & Activities

Production build 0.69.0 2024