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: Unable to add content to Canvas when saved template lacks widgets #3574

Open
ifarzana opened this issue Jan 21, 2025 · 1 comment
Assignees
Labels
Milestone

Comments

@ifarzana
Copy link

ifarzana commented Jan 21, 2025

CMS version: 4.1.2

Context:
When a template is saved with global elements and the Include Widgets option is unchecked during the save process, a console error appears when attempting to add any content to the Canvas later, while the template is in use. This issue seems tied to how global elements are treated during the template save process when widgets are excluded.

Steps to Reproduce:

  • Add a layout and add global elements such as Text
  • Publish and Save the layout as a template.
  • Ensure the Include Widgets option is unchecked.
  • Create a new layout from the saved template.
  • Attempt to add content to the Canvas or global elements in the new layout.

Expected Behaviour

  • Users should be able to add content to global elements/images/playlist
  • Canvas should not be retained when the option is not checked

Actual Behaviour
Widgets cannot be added to the Canvas

Image

@ifarzana ifarzana added the bug label Jan 21, 2025
@ifarzana ifarzana added this to the 4.3.0-alpha milestone Jan 21, 2025
@maurofmferrao
Copy link
Member

When a Layout is saved as Template without widgets, and it has Canvas elements, the Canvas widget is removed but not the Canvas region, and the Editor always expects a Canvas Region to have the widget present.

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