How to represent "one to many" data model in CCK form?
andrewl - May 6, 2009 - 16:08
Hi,
I want to someting like:
-------------------------------
Father's name: [text]
Child 1 Name: [text] Child 1 Age: [integer]
Child 2 Name: [text] Child 2 Age: [integer]
[Add another item]
-------------------------------
How do I do that with CCK? I.e. more than one item in Add Item group?

_
This feature is still being developed: http://drupal.org/node/119102. You may wish to checkout the http://drupal.org/project/flexifield module in the meantime. The only other option is to code a cck field module.
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
One-to-many
I've used Flexifield to do this with album tracks that have MP3's, lyrics, &etc. associated with them. Each track ends up being a seperate node. It's a good option, but it does tend to make the page a little large.
The CCK Text field can already accept an unlimited number of fields. But unfortunately it can only add atomic data (that is, a name or an age, but not both).
-Karlheinz