Don't display disabled layouts on the layout field

Created on 15 February 2024, 4 months ago
Updated 21 February 2024, 4 months ago

Problem/Motivation

Even if it's not possible (yet) to enable/disable layouts via UI, it is by editing the configuration manually by setting the status to false. Would be nice to hide those from the layout field the disabled layouts.

Steps to reproduce

- Create a layout called "test" for the article content type
- drush cset layout_library.layout.test status false
- Go to create a new article content,

Proposed resolution

On the layout_library entity reference selection plugin, add a condition to filter by status

Remaining tasks

- Patch
- Review
- Test

User interface changes

The disabled layouts should not appear anymore

API changes

None

Data model changes

None

✨ Feature request
Status

Needs work

Version

1.0

Component

User interface

Created by

πŸ‡ͺπŸ‡ΈSpain akalam

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024