I'm using Node Clone v2 along with Node Expire. I need Node Clone to reset the expiration date on Node Expire, whenever I clone a node. Currently, it clones EVERYTHING including the expiration date, rendering the new node, useless. I've switched to v1 temporarily, but I hate the way it creates a node, and then let's you edit it.
Is there a way to exclude certain fields from the cloning process?
This is quite urgent.
Comments
Comment #1
pwolanin commentedWell, the short answer is that this is a very simple module that treats all fields equally (except for some configurable bis with the publishing options), so if you want specific functionality like this the easiest thing would be to make your own version of the module.
Comment #2
cdemetriadis commentedWould you be willing to throw some pointers? I just need to exclude a field form the cloning process. Where would I start?
Comment #3
pwolanin commentedtake a look at the code:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/node_clone/...
this is the one function that actually does the work:
see how $node->menu, etc are treated (set to NULL or unset). You'll want to do this for any/all of the node expire fields.
Comment #4
cdemetriadis commentedOK, will try that out.
Thanks allot!
Comment #5
cdemetriadis commentedIt worked fine, thx!
Comment #6
pwolanin commentedsee also: http://drupal.org/node/199895
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.