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

Add template states to the Site Editor #64207

Open
Aljullu opened this issue Aug 2, 2024 · 0 comments
Open

Add template states to the Site Editor #64207

Aljullu opened this issue Aug 2, 2024 · 0 comments
Labels
[Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement.

Comments

@Aljullu
Copy link
Contributor

Aljullu commented Aug 2, 2024

In the frontend, there are many variables that might impact the way some templates or blocks behave. For example, the Search Results template might look different depending on whether there are results or not.

This issue is about providing a mechanism to enable those "states" in the Site Editor, so users can preview how the templates will look like in the frontend under certain circumstances.

Ideally, this should be extensible, so plugins can register custom states and have their own blocks adapt to those "states".

This is related to providing a system to preview templates with certain data (#28466), but it differs in that these templates states are not directly attached to an entity.

It's also related to block states (#57719 and #38108), the difference is that template states impact the entire template or several blocks instead of only one.

@Aljullu Aljullu changed the title Add template states in the Site Editor Add template states to the Site Editor Aug 2, 2024
@jameskoster jameskoster added Needs Design Needs design efforts. [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Type] Enhancement A suggestion for improvement. labels Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

2 participants