There is one CCK field I'd really like to have - It is sort of a node reference field, but I want to be able to add nodes inside another node.

Example:
Say I have an event, and I want to add multiple contact persons per event.
Each person will have a name, a phone number, and an email address.

When finished filling out details about the first person, I want a link saying "Add new contact person".

This could also be solved by field groups - adding a "Add another [field group name]" link under my "Contact Person" group, and it automatically saves the groups in an array.

Is there any way to do this now, or will I have to develop a new module for this?

Comments

marcvangend’s picture

The addnode module does this (http://drupal.org/project/addnode) but I'm not sure if it works as advertised. It's only available for Drupal 5 right now. I think the (rather new, still in development) flexifield module (http://drupal.org/project/flexifield) also offers similar features.

There is also interesting development happening in this thread: http://drupal.org/node/119102. The approach is a little different: it allows multi-value fieldsets, but they aren't saved as separate nodes.

asund’s picture

Thanks for the reply - doesn't seem to be a production ready solution out there, so I guess I'll have to replan my node structure ;)