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 Entries status - Live preview #15713

Open
rgauthier4c4 opened this issue Sep 10, 2024 · 5 comments
Open

[5.x]: Matrix Entries status - Live preview #15713

rgauthier4c4 opened this issue Sep 10, 2024 · 5 comments
Labels

Comments

@rgauthier4c4
Copy link

What happened?

Description

When editing an entry and opening the live preview modal, it is not possible to change the status of a matrix block and see the changes in the preview.

Steps to reproduce

  1. Edit an entry with a matrix block
  2. Open the live preview
  3. The blocks are shown in the preview
  4. Change the status of a single block to be disable
  5. The block is still showing in the preview

Expected behavior

The block should disappear from the page.

Actual behavior

The block is still there.

Craft CMS version

5.4.1

PHP version

8.2

Operating system and version

No response

Database type and version

mysql 8.0

Image driver and version

No response

Installed plugins and versions

@i-just
Copy link
Contributor

i-just commented Sep 11, 2024

Hi, thanks for getting in touch! What view mode is this matrix field using?

@rgauthier4c4
Copy link
Author

Hi, thanks for getting in touch! What view mode is this matrix field using?

The field is in "as card" view mode

@i-just
Copy link
Contributor

i-just commented Sep 11, 2024

Thanks for confirming!
I think I see what you mean. When you change the status, you don’t save the nested entry (block), right?

@rgauthier4c4
Copy link
Author

Exactly, I've played around a little bit an I think I understand the problem now.

Every nested entries needs to be saved/published before his parent can display the change in the live preview.

Live preview is only useful if the entry contains basic fields to display the drafts changes.

@i-just
Copy link
Contributor

i-just commented Sep 12, 2024

We’ll discuss this internally.

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

2 participants