1

I have been using Entity View Modes to organize my fields, have different display types, and use Field Groups to add bootstrap-style wrappers around my content.

As often as humanly possible, I have views and panels render nodes with these view modes to keep a consistent look throughout the site.

I keep hearing about Drupal Field Collections, and have a basic understanding that it goes further and makes an Entity out of the grouped fields. Seems like a different approach to achieve similar results. It has a lot more uses, but also a lot more open issues, and needs other modules to integrate with Views and Features.

I'd love to hear some thoughts on this.

Thanks,

Ji

1 Answer 1

3

Jim -

I love Field Collections because it allows me to create "structures" of fields that I can tie to multiple content types. You can still use Field Collections with Field Groups (in order to create field sets and the like). Would definitely recommend for projects with lots of content types / data that needs organization.

3
  • 1
    Thank Alex. Could you give me an example of fields that you would have on multiple content types? Off the top of my head I can only think of something like term reference fields. Mar 10, 2015 at 19:55
  • For me, it has been where I wanted to add certain objects (thinking high level) to content types. Let's say that I want all content types to have a field collection called "Object Metadata" with fields such as "age", "gender", etc. You could then attached that field collection to multiple different content types (in my case, we have a few content types that are fairly similar). Then if you wanted to add new metadata types (in this example), you'd just edit one place. Mar 10, 2015 at 20:47
  • Thank @Alex Laughnan, you have definitely given me some things to think about! Mar 13, 2015 at 19:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.