Proposed resolution

For blocks:

To cover both blocks in Layout Builder and in Block layout, use the same logic as ui_styles_block and ui_styles_layout_builder.

Use https://www.drupal.org/project/media_library_form_element for the form element.

For sections:

- wait for #3449390: [5.1.0] Create components for grid management
- add a new setting to section components to be able to select a media image?

OR

if already taking inspiration from ui_styles_layout_builder for blocks in Layout Builder, also do the same logic as the sections parts of ui_styles_layout_builder.

So no need to override layouts provided by ui_suite_bootstrap, and will be able to apply to any components used as layouts.

TODO:
- UI Patterns attributes plugin source
- Need to be able to handle background image on block contents by adding a media field on the block type and so view displays could use it with tokens.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

grimreaper created an issue. See original summary.

grimreaper’s picture

Assigned: Unassigned » grimreaper
grimreaper’s picture

grimreaper’s picture

Assigned: grimreaper » Unassigned
grimreaper’s picture

Version: 10.0.x-dev » 10.1.x-dev
grimreaper’s picture

Assigned: Unassigned » grimreaper
Status: Postponed » Active

grimreaper’s picture

Status: Active » Needs work
grimreaper’s picture

TODO:
- refactor display processing
- Form to control which media bundle is available and with which field.
- UI Patterns attributes plugin source

grimreaper’s picture

Also need to be able to handle background image on block contents by adding a media field on the block type and so view displays could use it with tokens.

grimreaper’s picture

Issue summary: View changes
grimreaper’s picture

Status: Needs work » Needs review

Discussed with @pdureau,

"Need to be able to handle background image on block contents by adding a media field on the block type and so view displays could use it with tokens."

Need Display Builder, or another source doing complicated stuff with tokens for that need.

Let's discuss if it is needed and if current state could be merged.

grimreaper’s picture

Issue tags: +ddd2025

  • grimreaper committed d4196bbe on 10.1.x
    Issue #3481508 by grimreaper: Background image on sections and blocks +...
grimreaper’s picture

Assigned: grimreaper » Unassigned
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.