Skip to main content
Aggregate Drupal.org Planet Drupal 26 Aug 2026 - 19:01

Stuart Clark (Deciphered): Drupal site settings over JSON:API, per consumer

RSS 官方收录 · 可信分层展示

关键摘要

In April 2022 I wrote about decoupling configuration with Config Pages, and ended it with a guess at where I'd go next: One of my future experiments with Druxt will be to look at the options of using the Drupal Consumers module alongside Drupal theme settings as a solution.…

  • That experiment is now a module.
  • Decoupled Settings serves the site and theme configuration Drupal alre…
  • It went up on Drupal.

摘要引擎:抽取

正文提要

In April 2022 I wrote about decoupling configuration with Config Pages, and ended it with a guess at where I'd go next:

One of my future experiments with Druxt will be to look at the options of using the Drupal Consumers module alongside Drupal theme settings as a solution.

That experiment is now a module. Decoupled Settings serves the site and theme configuration Drupal already holds over JSON:API, and lets every frontend override just the values it needs. It went up on Drupal.org this week.

Core's JSON:API is an entity API. Content entities and config entities alike, so node types, image styles and views are all in there. What it has never exposed is simple configuration, and there's a good argument that it shouldn't by default, because plenty of what sits in system.site is nobody's business.

But a decoupled frontend still needs the boring stuff:

  • The site name, for the document title
  • The slogan
  • The logo and the favicon
  • The front page path, so the router knows what "home" means

So every decoupled build solves it locally, and most of the ways to solve it end up keeping a second copy of the site name somewhere.

Continue reading →

打开官方原文 站点原文页 可信分区 本信源更多 今日简报 分享图 RSS 稍后再看列表