1

I have a content type with a field which has a number of instances (actually, it's a Field Collection with a vimeo embed and a text field). I would like to have each instance of the field to be shown as a tab? Field Group seems like a natural candidate for this role, but from what i understand it enables me only to build tabs for particular fields, not fields instances.

The way I'd dream this functionality to be is:
1) I add another field to my field collection named, say, "Tab title"
2) In "manage display" of the node I set the display of the field to be of "tabbed instance" type.
3) In settings of this display I set the title of the tab to be the new field introduced in 1) by Token.
Of course, any other way of acieving the goal would be also most welcome.
Is there a simple way to obtain such a functionality?

1

Someone up there likes you...

Field Collection Tab formatter

Field collection tabs provides a field formatter that allows you to output a multi value field collection field as a tabset, with one tab per field collection item.

Features

You can optionally choose a field from the field collection item to be used as the tab title.

It's uncannily close to what you're asking for. Your question might as well have been the user story that inspired that module :)

  • That's close. From what I understand, though, it enables me to give peculiar fields to tabs. What i do want, though, is to have the whole field collction in tabs. The collection is video+text. The user can put any number of them in the node, and I want to display all those in tabs. – Dalmaz Oct 9 '13 at 21:02
  • Yep that's exactly what it does - "one tab per field collection item". The "field collection item" refers to each individual collection of fields, not the individual fields themselves – Clive Oct 9 '13 at 21:04
  • 1
    Wow, I'm afraid it'll take me a while to find a module that matches so closely a request I have. I still have some trouble with the tabs names (they do not show up), but I hope I will make it. :-) – Dalmaz Oct 9 '13 at 21:23
  • 1
    I just had a problem with the names not shopwing up, as I assumed (wrongly) that the field from which the tab name is taken should be excluded from display in the field group. It should be left to display normally, or it won't show up in the tab. It won't show in the content (which is what I'd expect). @Clive a big thank you for helping me - I actually found the module before, but misunderstood its purpose, and without your clarification I might have been still scratching my head. – Dalmaz Oct 9 '13 at 21:49

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.