Abbas
Abbas

Reputation: 97

Use node as field in drupal 7

Is it possible in drupal 7 to use a content type as field in another content type?

For example, I want the user to type some structure information like Address Content Type in Customer Content Type:

Name: [    ]
Email [    ]
Address 1: Street[    ], City:[    ], Country [    ]
Address 2: Street[    ], City:[    ], Country [    ]
Address 3: Street[    ], City:[    ], Country [    ]

is it possible to create the Address Content Type and use it as a field in Customer Content Type?

Please advice. Abbas

Upvotes: 0

Views: 1317

Answers (1)

nmc
nmc

Reputation: 8686

Check out the References module

Edit:

If you want to create everything in one go, then look into using the Field Group module which will allow you to group certain fields together.

Note that this will NOT create Addresses as a content type but rather as fields within the Customer content type.

I don't know of any module that currently exists which will automatically create content types in the way that you've specified.

Upvotes: 2

Related Questions