Needs review
Project:
Field Collection Tab formatter
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Nov 2012 at 16:09 UTC
Updated:
13 Jun 2013 at 12:09 UTC
Jump to comment: Most recent file
Comments
Comment #1
larowlanSo what would happen here with the title field?
Would we just not add the javascript that transforms the markup into a tabset and leave it as two unordered lists?
Comment #2
gaele commentedThe title field (label) would be just a normal field item, so no list markup at all.
Single tab:

Two tabs:

Comment #3
gaele commentedComment #4
jamsilver commentedOK, I needed this functionality so here it is - patch attached!
There are two new options on the formatter config form:
1. Hide tabs for single values - withholds the tab markup or javascript if there is only a single value in the field,
2. Hide title field when tabs are hidden- withholds the title field when only a single tab-less value is shown.