6

I've used FlexiField in the past to do multiply occurring series of field groups; now, working on a Drupal 7 project, I'm setting up a "Resume" content type and need a way to set up repetitive entries for education/work experience.

IE: for "Education", I need the ability to dynamically add new rows comprised of a combination of dates and places for each institution studied at.

What is the best way to accomplish CCK3 multigroup/FlexiField-like functionality in Drupal 7?

Thanks!

3

For the moment, I'm implementing this via Field collection. Granted, that is still very early development.

If somebody could provide a list of solutions in the "group content fields together and allow an infinite number of these groups via the 'add another' button", I'll accept that as my answer. I may have to upgrade my FlexiField project to D7 at some point and there's currently no clear upgrade path with that module.

  • Accepting my own answer as it seems Field Collection is becoming somewhat of the standard for multifields in D7. Please comment if I am incorrect in stating this. – aendrew Jan 2 '12 at 15:24
3

Assuming you are using Drupal 6, there is a submodule called multigroup that allows you to group multiple fields together (creates the relationship) and gives you the ability to add unlimited values of each group.

If you are doing this in D7, you can use the Field Collection module, which does the same thing.

  • Unfortunately I'm using Drupal 7. Sorry I did not mentioned it. Will edit my post right now. And I can't seems to find multigroup for Drupal 7 – TheSquad Jan 12 '12 at 17:49
  • 1
    drupal.org/project/field_collection – user842 Jan 12 '12 at 17:54
  • Tried that too, but it does not seems to work properly, it does not appear in the structure menu, neither when acceding it directly at website.com/admin/structure/field-collections – TheSquad Jan 12 '12 at 18:11
  • 1
    Try running the dev version. It got a release a couple of days ago. – user842 Jan 12 '12 at 18:15
  • 3
    There is also an alternative, however it works for two text fields only drupal.org/project/double_field (which probably does not meet your spec, but worth a look for anyone else stumbling upon this). – user842 Jan 12 '12 at 18:17
0

There is also a Composed Field module. The main difference is that it saves each collection of fields as a field, where as Field Collection module saves each collection of fields as an entity (node). Although it's an awesome module, Composed Field is currently in pre-beta, so you might want to stick with Field Collection for now.

0

One thing to keep in mind on this is if you are using Field Collections then you need to make sure to set the value of "Number of values" to more than one (1) if you want the field collection to repeat.

I banged my head on that for a little while before realizing the obvious when I was trying to alter an existing field collection in Profile2 (Recruiter distro).

0

New answer to an old question (but isn't that how Drupal usually works): you might want to try the Multifield module as an alternative to Field Collection or the other solutions posted here. It's meant for this type of problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.