My content type is a preview of a music album so the fields include mp3 file and text fields about the track (title etc). I am using a panels node template which looks like this panels screenshot

This works fine for one track and the result looks like this:

enter image description here

But if I add a second track it looks like this:

enter image description here


All items in Field 1
All items in Field 2
All items in Field 3

How can I make it look like this:

enter image description here


field 1 item 1
field 2 item 1
field 3 item 1
field 4, item 1

field 1 item 2
field 2 item 2
field 3 item 2
field 4, item 2


I think I would have the same problem in Views.

1 Answer 1


Edit your content type and Use a field collection. instead of multiple fields. It's difficult to achieve what you want without explicit entities.

Provides a field-collection field, to which any number of fields can be attached.

A field collection is internally represented as an entity, which is embedded in the host entity. Thus, if desired field collections may be viewed and edited separately too.

Field collection will allow you to add multiple fields into one group, so instead of adding data to each field, you can just keep adding groups of data. This will allow you to add a collection of Artist, track number, track title, mp3 Then when you call the field collection via panels it will give you the results you want.

You are using multiple fields which will list the values from each individual field right underneath eachother.

  • @ DMAC ok thanks - after looking at drupal.org/project/field_collection I have also come across drupal.org/project/multifield which does a similar job - do you have any opinion about drupal.org/project/multifield ?
    – Juc1
    Aug 26, 2015 at 10:38
  • Multi-field is not as mature as field collections in terms of what it can do, but it is a good solution if you do not have multiple value items inside the multi-field. You can have a multiple value multi-field, but not multiple values inside the sub fields inside the multi-field, if that make sense. I've never used multi-field before, field collections does everything I want. And paragraphs combined with field collections can pretty much do anything.
    – DMAC
    Aug 26, 2015 at 14:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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