-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Site Editor: add option to duplicate custom template to three dot menu #36665
Comments
It's important to note that only custom templates can be duplicated. It should not be possible to duplicate primary templates (index, single, archive, search, etc). |
@jameskoster user should be able to duplicate, let's say We can start with custom templates and progressively enhance the duplication feature. |
We need to be careful with providing a duplication UI for primary templates because in this case duplication should only occur as part of the new template creation flow, never as a discrete action. We shouldn't make it possible for folks to create multiple index templates for instance. Perhaps the duplication element doesn't need to be surfaced to the user at all..?
For that particular example I think the flow should focus around adding a "Page" template from the "Add new" menu, and the duplication of |
Let's go with:
|
Core functions of any template/preset management in any software:
Looked for the "duplicate" functionality in the more dropdown of the template name that I wanted to duplicate, exactly as proposed! |
Here's the current experience as of 6.6.1 with GB 19.1 installed. Right now, we have the option to duplicate with pages, template part, and patterns but not with templates due to this work #63032 This led to larger questions around duplicating in general: #61083 add.option.to.duplicate.template.movDuplicating templates, as noted above, should start with custom templates only before figuring out a proper UX. |
Agreed, let's start with duplicating custom templates. |
The following is based on testing the PR Gutenberg Build from this PR: #36379 (comment)
What problem does this address?
It would be helpful to add a duplicate template into the 3 dot menu.
What is your proposed solution?
Adding a duplicate option.
The text was updated successfully, but these errors were encountered: