Skip to content

[5.x]: Matrix Blocks - As Cards - Disappear/Removed when the block is disabled and the parent entry is saved #14973

@terryupton

Description

@terryupton

What happened?

Description

I have a matrix field that I have set to present as cards rather than inline as I feel the UI is cleaner and easier for the content author to manage and use.

Screenshot 2024-05-10 at 17 01 00 Screenshot 2024-05-10 at 17 01 37

The problem I am facing is there is no way to disable the matrix blocks like you can if they are inline.
Instead you have to go into the entry (slide-out) and disable the block from there (set status to disabled).
this works fine. Although I would like to suggest the ability to disable this like the in-line method with a checkbox etc.

Screenshot 2024-05-10 at 17 09 39 Screenshot 2024-05-10 at 17 10 06

The problem arises is when you save the page, the disabled block is then removed, with no way to access it to re-enable it.

Screenshot 2024-05-10 at 17 10 25

I assume the content is still in the system, but I can not find a way to re-access this and this is certainly going to be a huge challenge for the average content author.

Steps to reproduce

  1. Edit a block in the matrix.
  2. Change the status of the block to disabled.
  3. The block shows as disabled.
  4. Resave the page
  5. The block is removed.

Expected behavior

  1. Edit a block in the matrix.
  2. Change the status of the block to disabled.
  3. The block shows as disabled.
  4. Resave the page
  5. The block remains in the matrix builder and continues to show as disabled, so it can be removed or re-enabled.

Actual behavior

  1. Edit a block in the matrix.
  2. Change the status of the block to disabled.
  3. The block shows as disabled.
  4. Resave the page
  5. The block is removed.

Craft CMS version

Craft Pro 5.1.1

PHP version

8.2.15

Operating system and version

Linux 6.7.11-orbstack-00143-ge6b82e26cd22

Database type and version

MySQL 8.0.33

Image driver and version

Imagick 3.7.0 (ImageMagick 6.9.11-60)

Installed plugins and versions

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions