Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
terryupton opened this issue May 10, 2024 · 2 comments
Assignees
Labels

Comments

@terryupton
Copy link

terryupton commented May 10, 2024

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

@i-just
Copy link
Contributor

i-just commented May 13, 2024

Hi, thanks for reporting! I raised a PR to keep showing the cards for disabled nested entries in matrix fields.

@brandonkelly
Copy link
Member

Craft 5.1.3 is out with a fix for this. Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants