tildbj/typo3-tco

Helpful library for the table configuration array (tca)

0.3.0 2020-11-25 13:06 UTC

This package is auto-updated.

Last update: 2024-04-25 20:05:35 UTC


README

Build Status codecov

Helpful library for creating TCA's in TYPO3

Installation

via composer

The recommended way to install tco is by using composer. Get tco by running

composer require tildbj/typo3-tco

via Extensionmanager:

Just install tco via extensionmanager. There are no more steps required.

Guide

Create column:

$tcaColumn = [
    'columnName' => (new \TildBJ\Tco\Input('LLL:ext:my_ext/Resources/Private/Language/locallang_db.xlf:columnName'))
        ->setRequired(false)
        ->toArray(),
    'columnName2' => (new \TildBJ\Tco\Image('LLL:ext:my_ext/Resources/Private/Language/locallang_db.xlf:columnName2', 'columnName2'))
        ->enableLink()
        ->setMaxItems(1)
        ->toArray(),
]

Need Support?

Feel free to ask your questions on Slack