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.
Issue fork sobki_profile_bootstrap-3481508
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
Comment #2
grimreaperComment #3
grimreaperComment #4
grimreaperComment #5
grimreaperComment #6
grimreaperComment #8
grimreaperComment #9
grimreaperTODO:
- refactor display processing
- Form to control which media bundle is available and with which field.
- UI Patterns attributes plugin source
Comment #10
grimreaperAlso 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.
Comment #11
grimreaperComment #12
grimreaperDiscussed 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.
Comment #13
grimreaperComment #15
grimreaper