0

I'm creating a website with a Project content type. In that content type there are common fields and a few group fields. Group fields are fields that need to stay together and can be added multiple times. So in my Group fields there will be a date field and a text field that can be added multiple times.

Do I need to create a new content type or taxanomy type for this or is there a module for Drupal 8 that provides this behaviour.

1 Answer 1

1

Try the module field_collection.

Add a field of type field_collection to your content type and allow multiple values. Then go to structure => Field collections and choose your field to add your date and text field.

Update: field_collection is on its way to be deprecated

Use paragraphs module instead.

Notice these meta data issues for paragraphs.

3
  • See this advice on the module page of field collection: Paragraphs is likely to replace field collection for Drupal 8. Field collection is on its way to being deprecated. It is recommended to use paragraphs instead of field collection for Drupal 8 projects.
    – 4uk4
    Commented Jun 3, 2017 at 8:25
  • Haven't seen it. I use field_collection on my own drupal 8 site and it works very well. So maybe I have to change to Paragraphs. I updated my answer.
    – schneidolf
    Commented Jun 3, 2017 at 8:31
  • You can check this meta issue for features that are not yet included in Paragraphs: drupal.org/node/2831131
    – 4uk4
    Commented Jun 3, 2017 at 8:48

Your Answer

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

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