Closed (fixed)
Project:
Node clone
Version:
5.x-1.0-beta
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Feb 2007 at 19:59 UTC
Updated:
19 May 2007 at 02:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
pwolanin commentedThis module does not take any special account of CCK, it just calls core API functions.
In general (because of how uploaded files are handled - each associated with a single node) it can't really work well with file/image attachments without specialized code.
Try this patch: http://drupal.org/node/110294#comment-197033
The alternate method of cloning seems to work better for some in terms of uploaded files.
Comment #2
giorgoskThanks pwolanin
so this is turn into a feature request for the node_clone
Comment #3
moshe weitzman commentedi would like to be able to not ofer cloning on certain node types - the ones that always use imagefield in my case.
Comment #4
pwolanin commented@Moshe- that seems like a reasonable work-around for problematic node type. I'll look into it.
Comment #5
pwolanin commentedAttached patch is against the DRUPAL-5--2 branch for this module. Follows more or less the template in og.module.
Comment #6
moshe weitzman commentedcode looks sane to me. i think you can compact a bit with node_get_types('names'); which returns an array suitable for form options. also, you have a type - search for 'ehre'
Comment #7
pwolanin commentedOk, I think this is good to go.
@Moshe - which branch of the module are you using? Also, I noticed a bug, of sorts, in OG where you must exclude at least one node type from the "Audience targetting system. " (also a typo there). Maybe you can use the same method for OG (patch to follow)?
Comment #8
pwolanin commentedsee issue w/ patch for og: http://drupal.org/node/141491
Also, in this patch changed "None" to "none" per core usage.
Comment #9
pwolanin commentedAlso a patch for the DRUPAL-5 branch
Comment #10
pwolanin commentedonce more with capitilization fix too.
Comment #11
moshe weitzman commentedi am using DRUPAL-5 branch.
i will look into the og issue.
Comment #12
pwolanin commentedOk, the last relevant patches committed to both the DRUPAL-5 and DRUPAL-5--2 branches.
@Moshe - I'd appreciate if you have time if you could look at this latter branch- the module works by a very different mechanism. It just populates the node form rather than using node_save(). I'm thinking about making this the default download.
Comment #13
(not verified) commented