I evaluated a bunch of the modules to create referenced nodes (node_widget, autocreate, etc) and found that this one was the closest to what I needed (able to have multiple references, doesn't force me to have any references)
the only problem I had was that I needed the default CCK values to be filled in for the created nodes. I was all ready to dive in to the php deep end and combine autocreate and this module into a frankenstein module that I could use, but some help in IRC pointed me in a different direction which eventually lead to an easier solution
I'm attaching a patch that was inspired by this comment: http://drupal.org/node/293663#comment-1152690
This might be something that should be configured w/ a checkbox on the field config form but that's still a bit beyond me at this point.
hope this patch helps someone...
Comment | File | Size | Author |
---|---|---|---|
#2 | cckautofill-837040.patch | 738 bytes | basvredeling |
get_default_values.patch | 894 bytes | manischewitzbacon |
Comments
Comment #1
mitchell CreditAttribution: mitchell commentedComment #2
basvredelingThe original patch is out of date, I remade the patch against the current 6.x-1.x branch.
The code itself works. New patch is attached and needs testing.
Comment #3
jackbravo CreditAttribution: jackbravo commentedSubscribe.
Comment #4
newnewuser CreditAttribution: newnewuser commentedsub
Comment #5
nfriend CreditAttribution: nfriend commentedThanks so much for this patch - worked great! I had tried to use this very helpful module a while back and couldn't get it to work so I moved on. Really wanting this feature I pressed on this time and realized I had a default toggle cck field that was set to true - meaning include it in certain Views including the one used for the Node Reference auto fill - and once this patch was applied, the field was toggled true and all worked fine.
Good stuff!
-Neil