Allow to choose media view mode for layout background image

Created on 2 February 2023, almost 2 years ago
Updated 6 August 2024, 5 months ago

Problem/Motivation

Currently when adding new RocketshipCoreBaseLayout we are able to choose background image,
The view mode is hardcoded to layout_builder_background.
It would be nice to choose the view mode, so we can define layouts more flexible , f.e. providing view modes with different aspect ratios of images.

Steps to reproduce

N/A

Proposed resolution

Extend layout configuration form with select list allowing to choose from available view modes. Default the option to layout_builder_background for backwards compatibility.

Remaining tasks

Create MR.

User interface changes

When adding new LB Layout/section, editors can use new select list to choose view mode for background image.

API changes

N/A

Data model changes

N/A

✨ Feature request
Status

Fixed

Version

6.1

Component

Code

Created by

πŸ‡΅πŸ‡±Poland sandboxpl Poland πŸ‡΅πŸ‡±

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024