CCK 3: Introducing the multigroup module

Yesterday we saw the birth of the CCK 3.x dev branch. One of the many exciting new features is the addition of the multigroup module. A multigroup works exactly like a regular fieldgroup in that it allows you to group different widgets together. You can for instance create a custom address group with textfields for the street name, zipcode and city, or a profile group with a nickname textfield and an avatar image upload field. What's new is that you can create a multi-value widget from these groups. So you can now create your own image gallery widget by setting up an image upload field, a title textfield and a description textarea and combining them in a multigroup.

This is another powerful step in eliminating the middleman by allowing administrators and editors full control, not only over the content types, but the widgets as well.

Promote this article on various sites:

Comments

Like ingredients?

So, does that mean I can make a multigroup that represents, say, ingredients in a recipe? Lets say an amount as a number, a unit such as a teaspoon as a lookup and a final lookup of the actual ingredient. That would be great!

Exactly!

That's exactly what this module does. The original feature request has been worked on for about two and a half years, and this is the result. It's really a very powerful tool.

Is there a module out there right now that does this?

Do you know of a module for current CCK that does this or do we have to wait on CCK 3 entirely?

CCK 3

I don't know of any other module that does this. The multigroup module required several changes in the cck module itself so I don't think there's currently another clean solution available.

Flexifield

There's Flexifield that can do this, albeit with limitations (namely views integration is missing).

Flexifield uses content types

Flexifield uses content types as widgets, while the multigroup module offers a clean solution by adding actual content fields.

http://drupal.org/project/cnr

http://drupal.org/project/cnr

You can do something similar with node references. The problem is that making a "subordinate" content type is not what Drupal likes to do. I've successfully made this work using an embedded view on the form with edit links to the referenced nodes.

Deltas

The important thing to realize about multigroups is that values in fields in a multigroup are associated by delta. For instance, if you have a textfield and an imagefield in a multigroup and you add another value you'll have four fields total, and the second fields are associated.

Exciting news! Let's hope

Exciting news!
Let's hope this functionality can grow stable quickly, as it would indeed be a very powerful feature for CCK.

How does CCK work with fields

How does CCK work with fields in Drupal 7?

Josh

Fields in Core

I think you best ask this in the Fields in Core group on g.d.o.

Brilliaaaaaaaaaant!!!

Brilliaaaaaaaaaant!!!

This is gonna be an awesome

This is gonna be an awesome feature and I'm SO waiting for it !!!

Is there a release plan

Is there a release plan available?

When it's done

It will be done when it's done. Currently the dev-3.x release isn't even shown on the cck project page yet so don't expect an official (alpha/beta/rc) release any time soon.

Views Integration

Hi, this is great.. Do you know how that is going to integrate with views? say, would a multigroup show up as a field?

Re: Views Integration

i am shure it will show up as a multi group.
;-)

awesome

this is the best news ever ! :-) can't wait...

thanks for the hard work

Post new comment

The content of this field is kept private and will not be shown publicly.