‪TYPO3CMS  9.5
pages.php
Go to the documentation of this file.
1 <?php
2 defined('TYPO3_MODE') or die();
3 
5  'config' => [
6  'cropVariants' => [
7  'default' => [
8  'disabled' => true,
9  ],
10  'social' => [
11  'title' => 'LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:imwizard.crop_variant.social',
12  'coverAreas' => [],
13  'cropArea' => [
14  'x' => '0.0',
15  'y' => '0.0',
16  'width' => '1.0',
17  'height' => '1.0'
18  ],
19  'allowedAspectRatios' => [
20  '1.91:1' => [
21  'title' => 'LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:imwizard.ratio.191_1',
22  'value' => 1.91 / 1
23  ],
24  'NaN' => [
25  'title' => 'LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:imwizard.ratio.free',
26  'value' => 0.0
27  ],
28  ],
29  'selectedRatio' => '1.91:1',
30  ],
31  ],
32  ],
33 ];
34 
36  'palettes' => [
37  'seo' => [
38  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.palettes.seo',
39  'showitem' => 'seo_title;LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.seo_title',
40  ],
41  'robots' => [
42  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.palettes.robots',
43  'showitem' => 'no_index;LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.no_index_formlabel, no_follow;LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.no_follow_formlabel',
44  ],
45  'canonical' => [
46  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.palettes.canonical',
47  'showitem' => 'canonical_link',
48  ],
49  'opengraph' => [
50  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.palettes.opengraph',
51  'showitem' => 'og_title, --linebreak--, og_description, --linebreak--, og_image',
52  ],
53  'twittercards' => [
54  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.palettes.twittercards',
55  'showitem' => 'twitter_title, --linebreak--, twitter_description, --linebreak--, twitter_image',
56  ],
57  ],
58  'columns' => [
59  'seo_title' => [
60  'exclude' => true,
61  'l10n_mode' => 'prefixLangTitle',
62  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.seo_title',
63  'config' => [
64  'type' => 'input',
65  'size' => 40,
66  'max' => 255,
67  'eval' => 'trim'
68  ]
69  ],
70  'no_index' => [
71  'exclude' => true,
72  'l10n_mode' => 'exclude',
73  'onChange' => 'reload',
74  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.no_index_formlabel',
75  'config' => [
76  'type' => 'check',
77  'renderType' => 'checkboxToggle',
78  'items' => [
79  [
80  '0' => '',
81  '1' => '',
82  'invertStateDisplay' => true
83  ]
84  ]
85  ]
86  ],
87  'no_follow' => [
88  'exclude' => true,
89  'l10n_mode' => 'exclude',
90  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.no_follow_formlabel',
91  'config' => [
92  'type' => 'check',
93  'renderType' => 'checkboxToggle',
94  'items' => [
95  [
96  '0' => '',
97  '1' => '',
98  'invertStateDisplay' => true
99  ]
100  ]
101  ]
102  ],
103  'canonical_link' => [
104  'exclude' => true,
105  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.canonical_link',
106  'displayCond' => 'FIELD:no_index:=:0',
107  'config' => [
108  'type' => 'input',
109  'renderType' => 'inputLink',
110  'size' => 50,
111  'max' => 1024,
112  'eval' => 'trim',
113  'fieldControl' => [
114  'linkPopup' => [
115  'options' => [
116  'title' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.canonical_link',
117  'blindLinkFields' => 'class,target,title',
118  'blindLinkOptions' => 'mail,folder,file'
119  ],
120  ],
121  ],
122  'softref' => 'typolink'
123  ]
124  ],
125  'og_title' => [
126  'exclude' => true,
127  'l10n_mode' => 'prefixLangTitle',
128  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.og_title',
129  'config' => [
130  'type' => 'input',
131  'size' => 40,
132  'max' => 255,
133  'eval' => 'trim'
134  ]
135  ],
136  'og_description' => [
137  'exclude' => true,
138  'l10n_mode' => 'prefixLangTitle',
139  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.og_description',
140  'config' => [
141  'type' => 'text',
142  'cols' => 40,
143  'rows' => 3
144  ]
145  ],
146  'og_image' => [
147  'exclude' => true,
148  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.og_image',
149  'config' => \‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
150  'og_image',
151  [
152  // Use the imageoverlayPalette instead of the basicoverlayPalette
153  'overrideChildTca' => [
154  'types' => [
155  '0' => [
156  'showitem' => '
157  --palette--;;imageoverlayPalette,
158  --palette--;;filePalette'
159  ],
160  \‪TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => [
161  'showitem' => '
162  --palette--;;imageoverlayPalette,
163  --palette--;;filePalette'
164  ]
165  ],
166  'columns' => [
168  ]
169  ],
170  'behaviour' => [
171  'allowLanguageSynchronization' => true
172  ]
173  ],
174  ‪$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
175  )
176  ],
177  'twitter_title' => [
178  'exclude' => true,
179  'l10n_mode' => 'prefixLangTitle',
180  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.twitter_title',
181  'config' => [
182  'type' => 'input',
183  'size' => 40,
184  'max' => 255,
185  'eval' => 'trim'
186  ]
187  ],
188  'twitter_description' => [
189  'exclude' => true,
190  'l10n_mode' => 'prefixLangTitle',
191  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.twitter_description',
192  'config' => [
193  'type' => 'text',
194  'cols' => 40,
195  'rows' => 3
196  ]
197  ],
198  'twitter_image' => [
199  'exclude' => true,
200  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.twitter_image',
201  'config' => \‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
202  'twitter_image',
203  [
204  // Use the imageoverlayPalette instead of the basicoverlayPalette
205  'overrideChildTca' => [
206  'types' => [
207  '0' => [
208  'showitem' => '
209  --palette--;;imageoverlayPalette,
210  --palette--;;filePalette'
211  ],
212  \‪TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => [
213  'showitem' => '
214  --palette--;;imageoverlayPalette,
215  --palette--;;filePalette'
216  ]
217  ],
218  'columns' => [
220  ]
221  ],
222  'behaviour' => [
223  'allowLanguageSynchronization' => true
224  ]
225  ],
226  ‪$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
227  )
228  ],
229  ],
230 ];
231 
232 ‪$GLOBALS['TCA']['pages'] = array_replace_recursive(‪$GLOBALS['TCA']['pages'], ‪$tca);
233 \‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
234  'pages',
235  '
236  --div--;LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.tabs.seo,
237  --palette--;;seo,
238  --palette--;;robots,
239  --palette--;;canonical,
240  --div--;LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.tabs.socialmedia,
241  --palette--;;opengraph,
242  --palette--;;twittercards',
243  (string)\‪TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_DEFAULT,
244  'after:title'
245 );
‪$tca
‪$tca
Definition: pages.php:35
‪TYPO3
‪$GLOBALS
‪$GLOBALS['TCA']['pages']['ctrl']['hideAtCopy']
Definition: pages.php:4
‪$openGraphCropConfiguration
‪$openGraphCropConfiguration
Definition: pages.php:4