Field collection tabs widget

Categories

Component ID

2169189

Component name

Field collection tabs widget

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

4964

Component created

Component changed

Component body

This module provides tabular display for field collections on the entity edit form. It does this by supplying a field widget that can be selected for the field collection on the field ui.

Adding a new field collection item is possible by clicking the last tab that has a '+' text by default.

Sorting of field collections is done via dragging and dropping the tabs.

The settings of the widget are (with default values):

  1. Text to use on a new tab (New)
  2. Text to use on the 'Add a new tab' tab (+)
  3. Field to use for tab titles
  4. Text to use if the field is empty (- None -)
  5. Field formatter to use

Install:

  1. Download and enable the module
  2. Download the Easy Responsive Tabs to Accordion jquery plugin, rename the folder to 'erta' and place it to sites/all/libraries so that the folder sites/all/libraries/erta/js exists. Note that the newest ERTA library does not work with the module, see #2403449: Keep up with ERTA library changes.

Bonus feature:

  • A media query breakpoint can be set where the tabs switch to accordion. By default this is at 768px.

Development sponsored by KYbest.

Thanks to larowlan for the inspiration from his Field Collection Tabs module!