I'm building a genealogy site. One of the most important use cases is to create an individual. I want to use a single form to capture information that will be used to create up to five nodes after clicking submit. I've done a bunch of research, and found lots of stuff partially represented by the links below, but I haven't found anything that will do this. Can you point me to any modules to that do this? Or will I need to write my own module for this?
New Individual form captures the following fields:
- Birth Given & Surnames
- Current checkbox (checked if it's still individual's current name)
- End date, if not current name
- Current Given & Surnames - if different from birth
- Start Date - if applicable
- Date of Birth
- Place of Birth
- Date of Death
- Place of Death
The form then creates the following five nodes:
- Individual node - with Title
- Name node for birth name
- Name node for current name (if different from birth name)
- Event node for birth
- Event node for death
Nodes 2-5 would have ER field_individual, to link back to the individual to which they are related.
Below are links to some of the resources I have found which are similar, but do not actually do what I'm looking to do:
- https://www.drupal.org/project/webform_wizard_full_title
- https://www.sitepoint.com/building-multi-page-wizard-like-form-drupal/
- https://www.drupal.org/forum/support/post-installation/2008-06-06/adding-multiple-nodes-at-once
- https://www.webwash.net/create-multiple-nodes-from-a-single-page/
- Creating Nodes and Referenced Nodes at Same Time
- https://www.drupal.org/forum/support/module-development-and-code-questions/2007-11-18/multiple-node-types-in-one-module
- https://www.drupal.org/project/pageroute