‪TYPO3CMS  10.4
pages.php
Go to the documentation of this file.
1 <?php
2 
3 defined('TYPO3_MODE') or die();
4 
6  'config' => [
7  'cropVariants' => [
8  'default' => [
9  'disabled' => true,
10  ],
11  'social' => [
12  'title' => 'LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:imwizard.crop_variant.social',
13  'coverAreas' => [],
14  'cropArea' => [
15  'x' => '0.0',
16  'y' => '0.0',
17  'width' => '1.0',
18  'height' => '1.0'
19  ],
20  'allowedAspectRatios' => [
21  '1.91:1' => [
22  'title' => 'LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:imwizard.ratio.191_1',
23  'value' => 1.91 / 1
24  ],
25  'NaN' => [
26  'title' => 'LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:imwizard.ratio.free',
27  'value' => 0.0
28  ],
29  ],
30  'selectedRatio' => '1.91:1',
31  ],
32  ],
33  ],
34 ];
35 
37  'palettes' => [
38  'seo' => [
39  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.palettes.seo',
40  'showitem' => 'seo_title;LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.seo_title',
41  ],
42  'robots' => [
43  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.palettes.robots',
44  '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',
45  ],
46  'canonical' => [
47  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.palettes.canonical',
48  'showitem' => 'canonical_link',
49  ],
50  'sitemap' => [
51  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.palettes.sitemap',
52  'showitem' => 'sitemap_changefreq, sitemap_priority',
53  ],
54  'opengraph' => [
55  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.palettes.opengraph',
56  'showitem' => 'og_title, --linebreak--, og_description, --linebreak--, og_image',
57  ],
58  'twittercards' => [
59  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.palettes.twittercards',
60  'showitem' => 'twitter_title, --linebreak--, twitter_description, --linebreak--, twitter_image, --linebreak--, twitter_card',
61  ],
62  ],
63  'columns' => [
64  'seo_title' => [
65  'exclude' => true,
66  'l10n_mode' => 'prefixLangTitle',
67  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.seo_title',
68  'config' => [
69  'type' => 'input',
70  'size' => 40,
71  'max' => 255,
72  'eval' => 'trim'
73  ]
74  ],
75  'no_index' => [
76  'exclude' => true,
77  'l10n_mode' => 'exclude',
78  'onChange' => 'reload',
79  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.no_index_formlabel',
80  'config' => [
81  'type' => 'check',
82  'renderType' => 'checkboxToggle',
83  'items' => [
84  [
85  '0' => '',
86  '1' => '',
87  'invertStateDisplay' => true
88  ]
89  ]
90  ]
91  ],
92  'no_follow' => [
93  'exclude' => true,
94  'l10n_mode' => 'exclude',
95  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.no_follow_formlabel',
96  'config' => [
97  'type' => 'check',
98  'renderType' => 'checkboxToggle',
99  'items' => [
100  [
101  '0' => '',
102  '1' => '',
103  'invertStateDisplay' => true
104  ]
105  ]
106  ]
107  ],
108  'sitemap_changefreq' => [
109  'exclude' => true,
110  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.sitemap_changefreq',
111  'config' => [
112  'type' => 'select',
113  'renderType' => 'selectSingle',
114  'items' => [
115  ['LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.sitemap_changefreq.none', ''],
116  ['LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.sitemap_changefreq.always', 'always'],
117  ['LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.sitemap_changefreq.hourly', 'hourly'],
118  ['LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.sitemap_changefreq.daily', 'daily'],
119  ['LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.sitemap_changefreq.weekly', 'weekly'],
120  ['LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.sitemap_changefreq.monthly', 'monthly'],
121  ['LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.sitemap_changefreq.yearly', 'yearly'],
122  ['LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.sitemap_changefreq.never', 'never'],
123  ],
124  ]
125  ],
126  'sitemap_priority' => [
127  'exclude' => true,
128  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.sitemap_priority',
129  'config' => [
130  'type' => 'select',
131  'renderType' => 'selectSingle',
132  'default' => '0.5',
133  'items' => [
134  ['0.0', '0.0'],
135  ['0.1', '0.1'],
136  ['0.2', '0.2'],
137  ['0.3', '0.3'],
138  ['0.4', '0.4'],
139  ['0.5', '0.5'],
140  ['0.6', '0.6'],
141  ['0.7', '0.7'],
142  ['0.8', '0.8'],
143  ['0.9', '0.9'],
144  ['1.0', '1.0'],
145  ],
146  ]
147  ],
148  'canonical_link' => [
149  'exclude' => true,
150  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.canonical_link',
151  'displayCond' => 'FIELD:no_index:=:0',
152  'config' => [
153  'type' => 'input',
154  'renderType' => 'inputLink',
155  'size' => 50,
156  'max' => 1024,
157  'eval' => 'trim',
158  'fieldControl' => [
159  'linkPopup' => [
160  'options' => [
161  'title' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.canonical_link',
162  'blindLinkFields' => 'class,target,title',
163  'blindLinkOptions' => 'mail,folder,file,telephone'
164  ],
165  ],
166  ],
167  'softref' => 'typolink'
168  ]
169  ],
170  'og_title' => [
171  'exclude' => true,
172  'l10n_mode' => 'prefixLangTitle',
173  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.og_title',
174  'config' => [
175  'type' => 'input',
176  'size' => 40,
177  'max' => 255,
178  'eval' => 'trim'
179  ]
180  ],
181  'og_description' => [
182  'exclude' => true,
183  'l10n_mode' => 'prefixLangTitle',
184  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.og_description',
185  'config' => [
186  'type' => 'text',
187  'cols' => 40,
188  'rows' => 3
189  ]
190  ],
191  'og_image' => [
192  'exclude' => true,
193  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.og_image',
194  'config' => \‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
195  'og_image',
196  [
197  // Use the imageoverlayPalette instead of the basicoverlayPalette
198  'overrideChildTca' => [
199  'types' => [
200  '0' => [
201  'showitem' => '
202  --palette--;;imageoverlayPalette,
203  --palette--;;filePalette'
204  ],
205  \‪TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => [
206  'showitem' => '
207  --palette--;;imageoverlayPalette,
208  --palette--;;filePalette'
209  ]
210  ],
211  'columns' => [
213  ]
214  ],
215  'behaviour' => [
216  'allowLanguageSynchronization' => true
217  ]
218  ],
219  ‪$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
220  )
221  ],
222  'twitter_title' => [
223  'exclude' => true,
224  'l10n_mode' => 'prefixLangTitle',
225  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.twitter_title',
226  'config' => [
227  'type' => 'input',
228  'size' => 40,
229  'max' => 255,
230  'eval' => 'trim'
231  ]
232  ],
233  'twitter_description' => [
234  'exclude' => true,
235  'l10n_mode' => 'prefixLangTitle',
236  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.twitter_description',
237  'config' => [
238  'type' => 'text',
239  'cols' => 40,
240  'rows' => 3
241  ]
242  ],
243  'twitter_image' => [
244  'exclude' => true,
245  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.twitter_image',
246  'config' => \‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
247  'twitter_image',
248  [
249  // Use the imageoverlayPalette instead of the basicoverlayPalette
250  'overrideChildTca' => [
251  'types' => [
252  '0' => [
253  'showitem' => '
254  --palette--;;imageoverlayPalette,
255  --palette--;;filePalette'
256  ],
257  \‪TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => [
258  'showitem' => '
259  --palette--;;imageoverlayPalette,
260  --palette--;;filePalette'
261  ]
262  ],
263  'columns' => [
265  ]
266  ],
267  'behaviour' => [
268  'allowLanguageSynchronization' => true
269  ]
270  ],
271  ‪$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
272  )
273  ],
274  'twitter_card' => [
275  'exclude' => true,
276  'label' => 'LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.twitter_card',
277  'config' => [
278  'type' => 'select',
279  'renderType' => 'selectSingle',
280  'default' => 'summary',
281  'items' => [
282  ['LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.twitter_card.summary', 'summary'],
283  ['LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.twitter_card.summary_large_image', 'summary_large_image'],
284  ]
285  ]
286  ],
287  ],
288 ];
289 
290 ‪$GLOBALS['TCA']['pages'] = array_replace_recursive(‪$GLOBALS['TCA']['pages'], ‪$tca);
291 \‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
292  'pages',
293  '
294  --div--;LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.tabs.seo,
295  --palette--;;seo,
296  --palette--;;robots,
297  --palette--;;canonical,
298  --palette--;;sitemap,
299  --div--;LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.tabs.socialmedia,
300  --palette--;;opengraph,
301  --palette--;;twittercards',
302  (string)\‪TYPO3\CMS\Core\Domain\Repository\PageRepository::DOKTYPE_DEFAULT,
303  'after:title'
304 );
305 
306 \‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette('pages', 'seo', '--linebreak--, description;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.description_formlabel', 'after:seo_title');
‪$tca
‪$tca
Definition: pages.php:36
‪TYPO3
‪$GLOBALS
‪$GLOBALS['TCA']['pages']['ctrl']['hideAtCopy']
Definition: pages.php:4
‪$openGraphCropConfiguration
‪$openGraphCropConfiguration
Definition: pages.php:5