Greetings,
I'd like to use this module in my project management app to allow for users to create multiple issues from a single 'submit issue' page.
Basically there would be a multi value cck text field.
Can this module create multiple nodes from a multiple value CCK field?
Comments
Comment #1
Anonymous (not verified) commentedSorry didn't mean to set to 6.x
Comment #2
Anonymous (not verified) commentedI think I've found the answer in this thread http://drupal.org/node/275754#comment-966591:
I assume this code is the same for text fields?
Comment #3
clemens.tolboomnode_factory has a single value
node_factory_set_value('fieldname', 'value');and a cck multiple valuesnode_factory_set_cck_value( 'fieldname', cck_array_struct);interface. The latter is unfortunately a little clumsy.So yes you can use all supported widgets node_factory provides.
I hope to provide a
node_factory_add_valueto support multiple values.Comment #4
Anonymous (not verified) commentedSorry, so does that mean the above code will work (please forgive that I'm not by any means a programmer)?
I also just want to be clear that we are not talking about populating one field with multiple values. I'm trying to input multiple values into a single field on one node and then have node factory create multiple nodes from each field in the multiple values.
That being said, what might the syntax be for doing so? Something like:
Comment #5
clemens.tolboomI guess you are using workflow_ng for getting things started?
If you inspect this $field_mycckfield you will not it is an array of array like structure. Install the devel module to look for yourself. So it depends on what's in the field structure what the code would be. See also last paragraphs of http://drupal.org/project/node_factory.
If you need help you can hire me through http://drupal.org/user/125814/contact
Comment #6
clemens.tolboom