16e472c716967b9b4207d287657271efa1d081db
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Configuration / SiteConfiguration / site_route.php
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',
21 ],
22 ],
23 'type' => [
24 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.type',
25 'config' => [
26 'type' => 'select',
27 'renderType' => 'selectSingle',
28 'required' => true,
29 'items' => [
30 ['', ''],
31 ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.staticText', 'staticText'],
32 ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.source', 'uri']
33 ],
34 ],
35 ],
36 'content' => [
37 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.staticText',
38 'config' => [
39 'type' => 'text',
40 'eval' => 'required',
41 ],
42 ],
43 'source' => [
44 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.source',
45 'config' => [
46 'type' => 'input',
47 'renderType' => 'inputLink',
48 'eval' => 'required',
49 'fieldControl' => [
50 'linkPopup' => [
51 'options' => [
52 'blindLinkOptions' => 'mail,spec,folder',
53 ]
54 ]
55 ],
56 ],
57 ]
58 ],
59 'types' => [
60 '1' => [
61 'showitem' => 'route, type',
62 ],
63 'staticText' => [
64 'showitem' => 'route, type, content',
65 ],
66 'uri' => [
67 'showitem' => 'route, type, source',
68 ]
69 ],
70 ];