Support sub-patterns for block

Created on 8 December 2020, about 4 years ago
Updated 3 October 2023, over 1 year ago

Problem/Motivation

Currently we support assigning the block content to a pattern. There are cases however where it would be valuable to be able to configure the sub-elements of a block. An example is the system_branding_block. The render array includes up to three sub-elements, 'site_logo', 'site_name', and 'site_slogan'. Allowing configuration of these sub-elements would for example allow assigning a text pattern to 'site_name', which might enable selecting a font, font size, and so on.

Proposed resolution

In the form builder, build the block and configure a pattern selector for each valid child of the render array.

In the block display alterer, selectively wrap child elements in patterns.

Remaining tasks

Will require a fix for an issue in UI Patterns, Cannot include two pattern select elements in same form. Pending that we could implement a workaround.

User interface changes

API changes

Data model changes

Feature request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇨🇦Canada nedjo

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