tildbj/typo3-tco

表格配置数组(tca)的有用库

0.3.0 2020-11-25 13:06 UTC

This package is auto-updated.

Last update: 2024-09-25 21:02:27 UTC


README

Build Status codecov

在TYPO3中创建TCA的有用库

安装

通过composer

推荐安装tco的方式是通过composer。运行以下命令获取tco:

composer require tildbj/typo3-tco

通过Extensionmanager

只需通过extensionmanager安装tco。无需更多步骤。

指南

创建列

$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(),
]

需要支持?

请随时在 Slack 上提出您的问题