1

I want to be able to create a content type with a number of fields (naturally). One section of the content type needs to be like the attached image with the ability to:
- group items together (e.g. an 'ingredient' in a recipe' - "2 cups flour, sifted"
- link (via autocomplete) to existing nodes [INGREDIENT NAME field below]
- add multiple items with a "more" button

Below is a screenshot from the 'Recipe' module. Is it possible to create this structure with CCK and can this be then added in a feature? content group

1 Answer 1

3

Use field collection to make a group of fields, then set that group to unlimited entries, simple.

4
  • 1
    thanks that worked a treat! I also used field_collection_table to make adding content easier Commented Mar 19, 2015 at 3:46
  • needed to apply this patch to field_collection_table to make it work correctly - drupal.org/node/2104475 Commented Mar 26, 2015 at 22:51
  • Good work! Did you need to add the extra bracket as per comment #12? If so it would be useful to let others know on that thread that you found the comment to be correct.
    – Darvanen
    Commented Mar 26, 2015 at 22:54
  • yeah extra bracket is needed. Commented Mar 27, 2015 at 0:04

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.