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

Site Editor: add option to duplicate custom template to three dot menu #36665

Open
paaljoachim opened this issue Nov 19, 2021 · 8 comments
Open
Labels
[Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") Needs Dev Ready for, and needs developer efforts [Type] Enhancement A suggestion for improvement.

Comments

@paaljoachim
Copy link
Contributor

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.

Screenshot 2021-11-19 at 16 40 19

What is your proposed solution?

Adding a duplicate option.
Duplicate-template

@jameskoster
Copy link
Contributor

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).

@Mamaduka
Copy link
Member

@jameskoster user should be able to duplicate, let's say single.html and use it as a base for Page. But this would require extra steps.

We can start with custom templates and progressively enhance the duplication feature.

@jameskoster
Copy link
Contributor

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..?

user should be able to duplicate, let's say single.html and use it as a base for Page. But this would require extra steps.

For that particular example I think the flow should focus around adding a "Page" template from the "Add new" menu, and the duplication of single should take place automatically in the background.

@paaljoachim
Copy link
Contributor Author

Let's go with:

We can start with custom templates and progressively enhance the duplication feature.

@aurooba
Copy link
Member

aurooba commented Jan 26, 2022

Hallo! I agree that it makes sense to start with custom templates. :) This was a little mockup I made a couple days ago in a duplicate issue:
kebab menu for templates has a duplicate option

The idea I had is that clicking on the duplicate option, pops open the same dialog we get now when we make a new template, letting us choose a name and the template the customizations should be assigned to.

@porg
Copy link

porg commented Mar 8, 2023

Core functions of any template/preset management in any software:

  • Create / Edit / Rename / Delete / Duplicate (start with a copy and then modify)

Looked for the "duplicate" functionality in the more dropdown of the template name that I wanted to duplicate, exactly as proposed!

@annezazu annezazu added [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") and removed [Feature] Full Site Editing labels Jul 24, 2023
@annezazu annezazu changed the title [Site Editor] Templates list screen - Adding duplicate to 3 dot menu. Site Editor: add option to duplicate template to three dot menu Sep 9, 2024
@annezazu
Copy link
Contributor

annezazu commented Sep 9, 2024

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.mov

Duplicating templates, as noted above, should start with custom templates only before figuring out a proper UX.

@annezazu annezazu changed the title Site Editor: add option to duplicate template to three dot menu Site Editor: add option to duplicate custom template to three dot menu Sep 9, 2024
@jameskoster
Copy link
Contributor

Agreed, let's start with duplicating custom templates.

@jameskoster jameskoster added the Needs Dev Ready for, and needs developer efforts label Sep 10, 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 Dev Ready for, and needs developer efforts [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

6 participants