Help testing the CCK Multigroup module

Events happening in the community are now at Drupal community events on www.drupal.org.
markus_petrux's picture

Hi all,

I've been working on a patch to the CCK multigroup module that I feel it's almost there. It needs as much testing as possible however. If you think you may need this feature, then please help testing, so maybe it can be included in the next release of CCK2, which I don't know because it depends on the CCK maintainers, but getting this tested, will help.

The multigroup needs a patch to CCK module itself that is required to keep field deltas in sync when some fields in multigroups are left empty, otherwise deltas are rebuilt making the fields shift one position to the previous subgroup of fields. The patch can be located here:

The issue for the multigroup module itself can be located here:

Thanks for helping!

Comments

New version of the multigroup module in comment #245

markus_petrux's picture

New version of the multigroup module in comment #245 of this issue: #119102: Combo field - group different fields into one (multi value fieldgroup?).

Changes since latest update:

  • The required attribute of fields is applied to the scope of a single sugroup of fields. If a subgroup is used, it contains any non-empty field, then required fields are required, heh. If a subgroup is not used, all fields are empty, then required fields are not required, and FormAPI will not complain about that. The required star is displayed for required fields, but the validation is skipped when the whole subgroup is empty. It was tricky, but I believe I got it.
  • There is a new option for multigroups: required. It's available from the multigroup settings form. When enabled, a minimum of one collection of fields in that Multigroup is required.
  • There is another new option for multigroups: Multiple columns. Also available from the multigroup settings form. When enabled, each field is rendered on a separate column on the node edit form.
  • There is a new display option for multigroup subgroups: Table. There was a TODO note on the multigroup module to implement this feature. Now, it's done.

I hope you find it as useful as we do! :-D

Please, test and report back any issues that you may find. This will help the CCK maintainers evaluate it all, and maybe we can count on it for a future CCK release.

Thank you

Yet a new one in comment #274

markus_petrux's picture

It could be the last one. Maybe, or maybe not. But it is getting close to something that works. :D

It can be found in patch form (against CCK2 HEAD), but also a tar, so it's easier to test.

http://drupal.org/node/119102#comment-1175922

It requires the patch to CCK2 posted in this issue:

http://drupal.org/node/196421#comment-1175906

Please, try it out and report any issues that you may find.

Tips: it can also be used to create combinations of fields, even when the multiple values of the group is set to 1 and the layout for edit and view is set to table format. It also works with Computed fields... and much more.

Thank you and Happy new year! :-D

markus_petrux's picture

Here's an updated version of the multigroup module. :-D

Combo field - group different fields into one (multi value fieldgroup?) - #286

Changes since latest version:

  • Bugfix: red asterisk bug when pressing "Add more values" button (see comment #280)
  • Bugfix: required attribute for field set to FALSE always, not just when delta > 0 (see comment #282).
  • Bugfix: error messages related to required attributes consistent with FAPI (see comment #282).
  • New feature: Table display mode for subgroups has been splitted into a couple of variants. 'Table - Single column' renders all fields on a single cell. 'Table - Multiple columns' renders each field on a separate column (equivalent to previous table display mode).

Required and/or recommended patches:

Please, don't try on production sites! ;-)

Again, I'm attaching the content multigroup module in patch form, but also all the module files tar'd for easy the task of testing it.

Thank you very much to all those that have tried. Your feedback has been great! :)

Content Construction Kit (CCK)

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: