In our use case we would like node clone to respect the default publishing options for each content type. For example, if we are cloning an already published node of type 'page', but nodes of type 'page' are unpublished by default, we would prefer that the new node is unpublished.

The attached patch changes node_clone to do this. I think this behaviour is preferable to the current behaviour, but perhaps this should be configurable?

Comments

mcurry’s picture

+1 on the suggestion

I was going to build my own cloner module, but I found this one. So, I may be doing some tweaks or feature enhancements and submitting a patch or two myself.

pwolanin’s picture

Title: Could node_clone respect default node creation publishing options? » Make node_clone respect default node publishing options

I would prefer to see this as a configurable option on a settings page, but I think it would be a potentially useful feature.

Actually, the best version might be to be able to configure the behavior on a per-node-type basis and/or based on the "administer nodes" permission.

pwolanin’s picture

Status: Active » Needs review
StatusFileSize
new6.18 KB

combining this issue with: http://drupal.org/node/81882

The patch attached addresses both feature requests.

Please give me your feedback on these changes.

pwolanin’s picture

Status: Needs review » Fixed

patch committed

pwolanin’s picture

Status: Fixed » Closed (fixed)

  • Commit 09ce60b on 4.7.x-1.x, 4.7.x-2.x, 5.x-1.x, 5.x-2.x, 6.x-1.x, 7.x-1.x, master, 8.x-1.x by pwolanin:
    #81882 and #80452 added new features- confirm screen and resetting of...