Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Edit Site: Add multiple template loading #19141
This PR continues the
How has this been tested?
It was verified that all available templates are now shown in a dropdown in the editor sidebar and that it is possible to change between them, edit single or multiple ones, save single or multiple ones, and see the changes on the front end.
Types of Changes
New Feature: The site editor now lets you edit all available templates.
This is so exciting, thanks @epiqueras!
I tested this out and was wondering about two things, certainly with the understanding that this is work in progress :)
Maybe the action for adding a template could be moved to the top area, and use the current "Templates" area for only editing the active templates name / slug. This feels more in line with the mental model of the "Document" settings in the rest of the editor.
Template parts will be managed via the template part block's edit flow. They show in the template switcher only if they are rendered in one of the loaded templates. Think of it like a zoomed-in view that you could also trigger by directly interacting with a template part block.
Yes, this is not meant to represent the final design. I just needed to expose a quick way of doing it.
I think the idea is for it to be an option in the template switcher dropdown.
The location of
Do you have a console message? I can't reproduce this.