Originally Posted by brookie
Following your excellent book I have learned lots about CCK and Views and am confident now to use them.
One question though...
I'm happy you found my book useful!
I'd like to have a user fill in a form that has a parent name, e.g. father's name, and then a list of childrens' names and ages.
I can see how to have individual fields that can have 2 to unlimited values, but I can't see how to link child's name to child's age to child's gender.
Is CCK up to that? Is that the right way to do it?
CCK is very much up to supporting one to many relationships via the node reference field.
You would need to create a child content type with name, age, etc., and have a multiple node reference field included in the profile content type.
However, CCK off the shelf is not quite up to what you want in terms of being able to create new child nodes as you are editing the profile.
However, several contributed modules are capable of supporting that, see:
1. Node relativity: http://drupal.org/project/relativity
for parent/child relationships, where the child can be created while editing the parent's form.
2. See this discussion: http://more.zites.net/embed-a-node-form-with-drupal-6
with a downloadable example: http://cvs.drupal.org/viewvc.py/drup...embed_example/
Let me know how this goes,