How to add user info along with address info in a single form using 2 content types?
Solutions
You probably should have a look to Profile2 module. If you really want to use content types, you should have a look to Inline Entity Form and then configure permissions to be sure users can only edit their own content.
Hope that helps ;-)
It sounds to me that you should have a look at the Entity connect module. Here are some details about it (from its project page):
Entity Connect now expands both
- Entity reference
- References (node_reference and user_reference)
fields by adding "add new content" and "edit current content" buttons.
It will work with all default widgets provided by Entity reference and References.
The Drupal module will allow you to dynamically create and edit entities (see bellow for the list of currently working entity types) which should be referenced into an Entity reference field.
It will help you to improve the User Experience for creation of new entities or edition of linked entities on your entity reference fields.
The "add a new" button will enable you to add / create a new entity. The first form will be cached then the new form will be generated. Once the new form is completed and saved the user will return to the original form.
The "edit" button will take the user to the edit form of the referenced entity. Once the user is done editing, he is sent back to the previous form.
Refer to Creating related records on the master for a first impression/intro about this module. This article is part of the illuminating Relativity Model for Drupal, for which this is an introduction to it (quoted from this linked page):
The Relativity Data Model for Drupal is a zero-custom-code, collection of steps, procedures and methods that strive to help site builders, users and site visitors interact with Drupal in a far easier and more efficient way. This is done by:
- Data architecture and data modeling merging as a single step through a documentation procedure.
- Customized user interfaces that cater to individual workflows throughout permission roles.
- Multi-level relational data structures that relate to other multi-level relational structures.
- Mimicking the concept of database joins within Drupal's UI's.
- Vastly reducing the size of Drupal sites by a small handful of modules that provide greater power, speed and expansion capabilities.
The small handfull of modules (cfr. the last bullet) is detailed on Interface elegance and experience and is like so (apart from Drupal core):
- https://www.drupal.org/project/ctools
- https://www.drupal.org/project/date
- https://www.drupal.org/project/entity
- https://www.drupal.org/project/entityreference
- https://www.drupal.org/project/entityconnect
- https://www.drupal.org/project/field_group
- https://www.drupal.org/project/token
- https://www.drupal.org/project/pathauto
- https://www.drupal.org/project/views