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

Template Editing Mode: Preview doesn't reflect switching between templates #31567

Closed
annezazu opened this issue May 6, 2021 · 3 comments
Closed
Labels
[Feature] Template Editing Mode Related to the template editor available in the Block Editor [Type] Bug An existing feature does not function as intended

Comments

@annezazu
Copy link
Contributor

annezazu commented May 6, 2021

Description

Using the new template editing mode, if you change which template a post is using and try to preview it, the preview doesn't reflect the change in template.

Step-by-step reproduction instructions

  1. Set up a site with FSE capabilities
  2. Add a new post
  3. In the sidebar settings, change which template the post is using.
  4. Preview the post and go back to the editor.
  5. In the sidebar settings, change which template the post is using once more (make sure it's a template with changes).
  6. Preview the post and notice the template didn't update.

Expected behaviour

I expect the preview to show the template I selected in the editor.

Actual behaviour

The preview shows only the last selected template/new template if you created one.

Screenshots or screen recording (optional)

switching.template.mov

WordPress information

  • WordPress version: 5.7.1
  • Gutenberg version: 10.6 RC
  • Are all plugins except Gutenberg deactivated? Yes
  • Are you using a default theme (e.g. Twenty Twenty-One)? TT1 Blocks

Device information

  • Device: Desktop
  • Operating system: MacOS
  • Browser: Chrome
@annezazu annezazu added [Type] Bug An existing feature does not function as intended [Feature] Template Editing Mode Related to the template editor available in the Block Editor labels May 6, 2021
@paaljoachim
Copy link
Contributor

Older associated issue related to Page templates:
#17727

@youknowriad
Copy link
Contributor

closing this as duplicate of #17727

Unfortunately thought, I don't expect this to be fixed soon. That's related to a very old behavior for autosaves in Core that is very unlikely to change. It might be better as a trac ticket actually

@paaljoachim
Copy link
Contributor

I am pinging
@iandunn @peterwilsoncc @desrosj @audrasjb
To let you all know about this issue as well as the original one that Ian made.
It would be great if this could be transferred over to Trac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Template Editing Mode Related to the template editor available in the Block Editor [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants