Khanh Hoang - Kenn
Kenn is a user experience designer and front end developer who enjoys creating beautiful and usable web and mobile experiences.
As with so many of the tutorials we write, this tutorial started as a question in our support forums.
One of our members wanted to set up three image fields and then re-use them across multiple content types.
Our solution was to recommend the Field Collection module.
Field Collection allows you (as the name implies) to collect some fields together into a group. You can then re-use those fields for multiple content types, users, comments or really whenever you add fields.
Here's how to use the Field Collection module.
Field Collection requires that you install just two modules:
Enable those two modules.
You'll now see an area very similar to your content type screen. Essentially your "field collection" is an entity that you can add fields to. If you're not sure what an entity is, read our introduction to Entites.
In this example, I'm going to add three image fields:
Back in Step #2, you added the field collection to a content type. Click "Add content" and you'll find your reusable images are attached to the content and ready to use:
Now that your Field collection is ready, you can use it with any other entity on your site.
You can use the whole Field collection or individual fields within the Field collection: