‪TYPO3CMS  9.5
site_route.php
Go to the documentation of this file.
1 <?php
2 
3 return [
4  'ctrl' => [
5  'label' => 'route',
6  'label_userFunc' => \TYPO3\CMS\Backend\Configuration\TCA\UserFunctions::class . '->getRouteTitle',
7  'title' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.ctrl.title',
8  'type' => 'type',
9  'typeicon_column' => 'type',
10  'typeicon_classes' => [
11  'staticText' => 'mimetypes-text-html',
12  'uri' => 'apps-pagetree-page-content-from-page',
13  ],
14  ],
15  'columns' => [
16  'route' => [
17  'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.route',
18  'config' => [
19  'type' => 'input',
20  'eval' => 'required, trim',
21  'placeholder' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.route.placeholder',
22  'valuePicker' => [
23  'items' => [
24  ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.route.example1', 'robots.txt'],
25  ],
26  ],
27  ],
28  ],
29  'type' => [
30  'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.type',
31  'config' => [
32  'type' => 'select',
33  'renderType' => 'selectSingle',
34  'required' => true,
35  'items' => [
36  ['', ''],
37  ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.staticText', 'staticText'],
38  ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.source', 'uri']
39  ],
40  ],
41  ],
42  'content' => [
43  'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.staticText',
44  'config' => [
45  'type' => 'text',
46  'eval' => 'required',
47  'valuePicker' => [
48  'items' => [
49  ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.staticText.example1', 'User-agent: *
50 Disallow: /typo3/
51 Disallow: /typo3_src/
52 Allow: /typo3/sysext/frontend/Resources/Public/*
53 '],
54  ],
55  ],
56  ],
57  ],
58  'source' => [
59  'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.source',
60  'config' => [
61  'type' => 'input',
62  'renderType' => 'inputLink',
63  'eval' => 'required',
64  'fieldControl' => [
65  'linkPopup' => [
66  'options' => [
67  'blindLinkOptions' => 'mail,spec,folder',
68  ]
69  ]
70  ],
71  ],
72  ]
73  ],
74  'types' => [
75  '1' => [
76  'showitem' => 'route, type',
77  ],
78  'staticText' => [
79  'showitem' => 'route, type, content',
80  ],
81  'uri' => [
82  'showitem' => 'route, type, source',
83  ]
84  ],
85 ];