tildbj / typo3-tco
表格配置数组(tca)的有用库
0.3.0
2020-11-25 13:06 UTC
Requires
- php: ^7.0 || ^7.1 || ^7.2 || ^7.3 || ^7.4
- typo3/cms-core: ^8.7 || ^9.5 || ^10.0
Requires (Dev)
- phpunit/php-code-coverage: ^5.2
- phpunit/phpunit: ^6
- squizlabs/php_codesniffer: ^3.0
- symfony/var-dumper: ^3.3
Replaces
- typo3-ter/tco: 0.3.0
README
在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 上提出您的问题