Closed (fixed)
Project:
Content Templates
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 May 2025 at 12:08 UTC
Updated:
3 Jul 2026 at 13:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
baikho commentedComment #4
baikho commentedComment #8
a.dmitriiev commentedI have opened the new MR from the same repo, but I have created the branch out of 1.0.x (of the fork repo), because it conflicts with the origin.
The branch was also rebased on the latest changes. Let's continue in that MR.
Comment #9
a.dmitriiev commentedI have also added update hook to restore quick node clone setting to its default value and make sure that 'Clone of' is not added to the title for content template form.
Comment #10
hanan alasariComment #11
hanan alasariTested MR !11 on Drupal 11.x (DXP profile, D11.1.x, PHP 8.3)
Automated tests (7/7 pass):
- Template list page shows all templates
- Template tab appears on source node
- /template/{node}/quick_clone shows "Create from template [title]" — no "Clone of" prefix
- /clone/{node}/quick_clone still shows "Clone of [title]" — default behavior preserved
- Template picker links now use /template/{node}/quick_clone (not the old quick_node_clone route)
- "Created from" link visible on node edit form
- Delete warning when deleting a source node with templates
One observation: hook_menu_local_tasks_alter hides tabs for quick_node_clone.node.quick_clone but not for the new
content_templates.node.quick_clone route — tabs may appear when creating from a template. Worth checking if this is
intentional.
Video attached.
Comment #12
hanan alasariComment #13
hanan alasariComment #14
hanan alasariComment #15
hanan alasariAlso fixed hook_menu_local_tasks_alter to hide tabs for the new content_templates.node.quick_clone route as well — pushed to
the same branch.
Comment #16
hanan alasariComment #18
a.dmitriiev commented