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

Can stored values in a multigroup be retrieved separately

I am having an issue with multigroups that I am not sure can be solved. I am attempting to drill down to some data using two arguments.

For example, I have a content type that has several multigroups that include one content taxonomy field and one text area field. An example might be a content type with content taxonomy field labeled "animal", a multigroup labeled "dogs" with a content taxonomy field labeled "breed" and a text area field labeled "characteristics of breeds".

A user may make an entry like:

animal -- dog

breed -- German Sheppard
comments -- Large dog. Makes good guard dog.

breed -- golden retriever
comments -- Friendly. Makes good hunting dog.

The problem is when creating views. I have a view that will list all of the breeds. The list entries are linked to a view that accepts two arguments. The first is for the animal field and the second is for the breed field. The view is to display the comments for that animal/breed entry. So the url might look like site/dog/german sheppard.

This results in a view that shows all of the comments the user entered under that multigroup. So for the example, the results would be:

Large dog. Makes good guard dog.

Friendly. Makes good hunting dog.

Is there a way to get this to only show the correct results or is this an inherent problem with multigroup?

Thanks for any suggestions.

I think you best create a

I think you best create a support ticket for this on the d.o cck issue queue.

Wim, I actually did put a

Wim,

I actually did put a ticket on the cck queue and I never received a response. Do you feel like you know the workings of the multigroup module well enough to work on this issue?

By that I mean, could we hire

By that I mean, could we hire you to work on this issue.

Definitely. Send me a quick

Definitely. Send me a quick message through the contact form so we can exchange details. In the meantime I'll check the issue http://drupal.org/node/692186 and see what I can do. Perhaps there's an easy solution for this, then I'll just follow up in the queue.

multigroup issue

Wim,

I just wanted to check with you and see if you have received my earlier message if you need it.

I'm on it

I received your message and I'm looking into it. I'll keep you posted!

Wim, I just wanted to check

Wim,

I just wanted to check and see if you ever figured out anything on the multifield issue.

Post new comment

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