Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.4k stars 1.98k forks source link

Assign a custom template to a default template #89879

Open masperber opened 5 months ago

masperber commented 5 months ago

What

In the Site Editor, under templates, it would be great to add the ability to assign an existing custom template to a default template, without needing to manually copy the content from one template to another.

Why

I worked with a user who designed a template as a custom template, but they later wanted to assign that custom template as their front page. This required them to copy their content from the custom template to the Front Page template.

How

When viewing all templates, there is a 3 vertical dots button to the left of all templates. In this menu, it could be possible to assign or copy one template to another template.

When doing this, it would be great if the revision history of the template receiving the changes will be preserved, so this action can be easily undone.

liviopv commented 4 months ago

There's currently an option to override the contents of a template with another template, but it's currently reserved for theme-defined templates:

https://github.com/Automattic/wp-calypso/assets/14153300/22f98b84-5ef8-42d5-9a78-b6532c9180c7

📌 ACTIONS

Reported upstream: https://github.com/WordPress/gutenberg/issues/61256

mrfoxtalbot commented 2 weeks ago

@liviopv, I cannot replicate this, the three-dot menu is not working on my end:

https://github.com/user-attachments/assets/3e73b536-f65d-4377-8152-7db457481c4c

Am I doing something wrong?