100 lines
4.2 KiB
PHP
100 lines
4.2 KiB
PHP
<?php
|
|
|
|
return [
|
|
'ctrl' => [
|
|
'label' => 'route',
|
|
'label_userFunc' => \TYPO3\CMS\Backend\Configuration\TCA\UserFunctions::class . '->getRouteTitle',
|
|
'title' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.ctrl.title',
|
|
'type' => 'type',
|
|
'typeicon_column' => 'type',
|
|
'typeicon_classes' => [
|
|
'staticText' => 'mimetypes-text-html',
|
|
'asset' => 'mimetypes-text-html',
|
|
'uri' => 'apps-pagetree-page-content-from-page',
|
|
],
|
|
],
|
|
'columns' => [
|
|
'route' => [
|
|
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.route',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'required' => true,
|
|
'eval' => 'trim',
|
|
'placeholder' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.route.placeholder',
|
|
'valuePicker' => [
|
|
'items' => [
|
|
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.route.example1', 'value' => 'robots.txt'],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
'type' => [
|
|
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.type',
|
|
'config' => [
|
|
'type' => 'select',
|
|
'renderType' => 'selectSingle',
|
|
'required' => true,
|
|
'items' => [
|
|
['label' => '', 'value' => ''],
|
|
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.staticText', 'value' => 'staticText'],
|
|
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.source', 'value' => 'uri'],
|
|
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.asset', 'value' => 'asset'],
|
|
],
|
|
],
|
|
],
|
|
'content' => [
|
|
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.staticText',
|
|
'config' => [
|
|
'type' => 'text',
|
|
'required' => true,
|
|
'valuePicker' => [
|
|
'items' => [
|
|
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.staticText.example1', 'value' => 'User-agent: *
|
|
Disallow: /typo3/
|
|
Disallow: /typo3_src/
|
|
Disallow: /fileadmin/user_upload/_temp_/importexport
|
|
# Uncomment the following line if you have a sitemap enabled. Replace the domain with your own.
|
|
# Sitemap: https://www.example.org/sitemap.xml
|
|
'],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
'source' => [
|
|
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.source',
|
|
'config' => [
|
|
'type' => 'link',
|
|
'required' => true,
|
|
'allowedTypes' => ['page', 'url', 'record', 'file'],
|
|
],
|
|
],
|
|
'asset' => [
|
|
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.asset',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'eval' => 'trim',
|
|
'required' => true,
|
|
'valuePicker' => [
|
|
'items' => [
|
|
['label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.asset.example', 'value' => 'EXT:backend/Resources/Public/Icons/favicon.ico'],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
'types' => [
|
|
'1' => [
|
|
'showitem' => 'route, type',
|
|
],
|
|
'staticText' => [
|
|
'showitem' => 'route, type, content',
|
|
],
|
|
'uri' => [
|
|
'showitem' => 'route, type, source',
|
|
],
|
|
'asset' => [
|
|
'showitem' => 'route, type, asset',
|
|
],
|
|
],
|
|
];
|