Using tabs in records is really easy, just go to your extension folder and change some configurations of the related record:
- eidt the file ext_tables.php und adjust the "ctrl" property of the $TCA arrays:
activate: "dividers2tabs"=>TRUE - Then you can define the Tabs in the file "tca.php" underneath the section "types" by adjusting the property "showitem":
Each entry of the form "--div--;..text..," within the string will be a tab in the backend. (Remember to define at least two.)
Instead of a text you can also use a language-label like shown in the example below:
The relevant part of the TCA Array could look like that:
"types" => Array (
"0" => Array("showitem" =>
"--div--;LLL:EXT:danp_libs/locallang_db.php:generaltab,
title;;;;2-2-2, short;;;;3-3-3,
description, times,
--div--;LLL:EXT:danp_libs/locallang_db.php:flexform.properties,
hidden;;1;;1-1-1, withchildcare, status, outdoor, instructor")
),

