The issue a href="http://drupal.org/node/119102">Combo field - group different fields into one became too long so I desided to create new for anyone who is lost in the previous one including me:)

After here is not my words, but markus_petrux

#346
markus_petrux - January 31, 2009 - 19:24

hmm... it seems there's too much info in several places. Let's see if I can sum it up a little.

This issue deals with the multigroup module, which was left unfinished when CCK 2.1 was released.

If you wish to help testing (I wouldn't recommend any other kind of use until it gets committed), then you need 3 basic things:

1) Install the latest development version of CCK 2, release 6.x-2.x-dev

2) Apply the latest patch in #196421: Deleting unwanted multiple values / multiple values delta issues. This is now located in comment #84 of that issue. Besides the patch, you need to get 2 icons that are attached to comment #75 of that issue. These icons should be uploaded to cck/images. This patch allows CCK keep delta items in sync when working with multigroups. It also changes the way users remove field values. To date an item in multiple valued fields is removed when it is emptied. After this patch, empty fields are not removed, you use a 'remove' button instead.

3) Apply the latest patch in this issue, the multigroup module (located now in comment #320 above). Alternatively, you can get the tar file, and just replace the contents of cck/modules/content_multigroup. Then in module administration, install the multigroup module, then you can start using it in content types (fieldgroups now have a type option: standard or multigroup).

In addition to this, there are a few issues affecting other contrib modules implementing CCK fields. Information on this can be found in comment #286 of this issue, the multigroup issue. Also, note that filefield/imagefield don't work with multigroups, yet (please, see #367267: Compatibility issues with Content Multigroup).

Hope that helps.

#378
markus_petrux - March 3, 2009 - 17:10

Here's an updated content_multigroup module that contains a small fix that seems to work better with filefield. For additional information on filefield compatibility with multigroup, please see #367267: Compatibility issues with Content Multigroup

It's just in tar format due to the complexity of the patch, and it saves me a little time (precious thing these days). I just changed the AHAH handler of the multigroup with the fix recently made to includes/content.node_form.inc as in this patch.

Please, see comment #346 above for further information on the status of this module.

#388
markus_petrux - March 4, 2009 - 09:43

@andreiashu #387: The file content-edit.js is provided by the latest patch I posted to #196421: Deleting unwanted multiple values / multiple values delta issues

AFAICT, that patch correctly places the file in the theme subdirectory of CCK.

@all: In regards to nested fieldgroups and fieldgroup tabs... for the moment, the multigroup module should be modified by the patches in #300084: Nested fieldgroup

This is all a complex situation, but I believe we cannot do more than just try to keep moving in the hope that this is finally in a state that can be committed to CCK. That means:

1) It is stable enough.
2) It is compatible with as much CCK fields and related modules as possible.
3) ...nice for Fields in D7 core.

Most of these depend on a few people trying to work on this and trying to make this compatible with other modules (for example, filefield), on you trying to help reporting feedback, and finally CCK maintainers who have a better understanding of all implications of such a change to CCK2, etc.

Thanks, Markus.

Now my question is - Is this current status or not? What field types are allready tested and are working well, especially I'm interested with image field/filefield. I propose everyone to continue that topic here because that topic is bloated too much.

Comments

vm’s picture

the last blurb is from 5 - 6 days ago, so I'd say yes, it's the current status.

netbear’s picture

#424
markus_petrux - March 11, 2009 - 13:37

Ok, here's an updated version of the multigroup. The patch is against latest CCK 6.x-2.x-dev snapshot. I'm also attaching a tar file that can be used as an alternative to the patch. The patch really modifies a big part of the original content_multigroup module. The extension of tar file needs to be remaned to ".tar.gz" before extracting. The contents of this tar is aimed to replace the whole directory cck/modules/content_multigroup.

This patch requires the latest patch in #196421: Deleting unwanted multiple values / multiple values delta issues. It can be found in comment #117 of that issue. That patch introduces 'remove' buttons for multiple value fields, and makes CCK work in a way that delta values are only removed upon user request, not when fields are left empty as it does now.

Note related to filefield/imagefield: Well, this is moving and you can follow the patches to filefield for compatibility with multigroups here: #367267: Compatibility issues with Content Multigroup

Notes related to other CCK fields:

- The multigroup module can work with almost any CCK field. There are widgets that are programmed to manage their own multiple values (optionwidgets, content_taxonomy, etc). These need to implement a couple of content_multigroup hooks. Look at the following issue in the Content Taxonomy queue for an example: #350669: Add support for the content multigroup module?

- For those using Computed fields: #349548: Conditional result for hook_content_is_empty()

- Multiple value fields such as freetagging widget of content_taxonomy can not work with multigroups. Please, see this explanation on why.

Also, please note that if you want/need to try this with nested fieldgroups / fieldgroup tabs, you have to follow updates on this other issue: #300084: Nested fieldgroup

Please, don't try this on production sites. Note that there are no upgrade paths between dev versions of these patches.
Attachment Size
content_multigroup-119102-424.patch 78.75 KB
content_multigroup-119102-424.tar_.gz 17.35 KB

Passionate_Lass’s picture

I used multigroup before just for basic purposes on a prod site, and I was counting on that for a current project. :S

Has there been any updates since march on this as it is mid-June now.

I unfortunately have no means to easily add patches. I've tried and it's never worked for me so I'm wondering if someone would be so kind as to post an updated, patched, version of the multigroup module as it stands now. :)

Thanks

markus_petrux’s picture

Status: Active » Closed (duplicate)

Even though, this issue was previous, there's a new one that's focused on the current state of the multigroup module, and there's where we will be posting updates. Please, note there's no need to apply the patches mentioned above. Those are committed to CVS and available within the experimental branch 6.x-3.x.

Please, check this: #494100: State of the multigroup module