This commit is contained in:
Oliver Davies 2015-06-14 03:27:41 +01:00
parent 1f815ba7bc
commit eb3dbc40bb
116 changed files with 1123 additions and 1123 deletions

View file

@ -3,13 +3,13 @@ title: Create Multigroups in Drupal 7 using Field Collections
nav: blog
slug: create-multigroups-drupal-7-using-field-collections
tags:
- drupal-7
- drupal-planet
- cck
- fields
- field-collection
- entity-api
- multigroup
- drupal-7
- drupal-planet
- cck
- fields
- field-collection
- entity-api
- multigroup
---
One of my favourite things lately in Drupal 6 has been CCK 3, and more specifically, the Content Multigroups sub-module. Basically this allows you to create a fieldset of various CCK fields, and then repeat that multiple times. For example, I use it on this site whist creating invoices for clients. I have a fieldset called 'Line Item', containing 'Description', 'Quantity' and 'Price' fields. With a standard fieldset, I could only have one instance of each field - however, using a multigroup, I can create multiple groups of line items which I then use within the invoice.
@ -27,4 +27,4 @@ Whilst this works perfectly, the field collection is not editable from the node
After some searching I found [a link to a patch](http://drupal.org/node/977890#comment-4184524) which when applied adds a 'subform' widget type to the field collection field and allows for it to be embedded into, and editable from within the node form. Going back to the content type fields page, and clicking on 'Hidden' (the name of the current widget), I can change it to subform and save my changes.
With this change applied, when I go back to add or edit a node within this content type, my field collection will be easily editable directly within the form.
With this change applied, when I go back to add or edit a node within this content type, my field collection will be easily editable directly within the form.