forked from comvos/comvosserptool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
executable file
·35 lines (31 loc) · 1.85 KB
/
ext_tables.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
if (! defined('TYPO3_MODE')) {
die('Access denied.');
}
if (version_compare(TYPO3_branch, '6.1', '<')) {
\TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('pages');
}
$GLOBALS['TCA']['pages']['columns']['description']['config']['wizards'] = array(
'SERPWizard' => array(
'type' => 'userFunc',
'userFunc' => 'EXT:' . $_EXTKEY . '/Classes/tx_comvosserptool_SERPWizard.php:tx_comvosserptool_SERPWizard->SERPWizard',
'params' => array(
'emptyValue' => 'No description'
)
)
);
$GLOBALS['TCA']['pages']['columns']['title']['config']['wizards']['SERPWizard'] = $GLOBALS['TCA']['pages']['columns']['description']['config']['wizards']['SERPWizard'];
$GLOBALS['TCA']['pages']['columns']['title']['config']['wizards']['SERPWizard']['params'] = array(
'previewSelector' => '.srs-title',
'overrideWithSelector' => 'input[name*=\\\[tx_seo_titletag\\\]]',
'maxLength' => 70,
'emptyValue' => 'No title'
);
$GLOBALS['TCA']['pages']['columns']['tx_seo_titletag']['config']['wizards']['SERPWizard'] = $GLOBALS['TCA']['pages']['columns']['title']['config']['wizards']['SERPWizard'];
$GLOBALS['TCA']['pages']['columns']['tx_seo_titletag']['config']['wizards']['SERPWizard']['params']['fallbackFieldSelector'] = 'input[name*=\\\[title\\\]]';
$GLOBALS['TCA']['pages']['columns']['tx_seo_titletag']['config']['wizards']['SERPWizard']['params']['overrideWithSelector'] = '';
# Page language overlay
$GLOBALS['TCA']['pages_language_overlay']['columns']['description']['config']['wizards'] = $GLOBALS['TCA']['pages']['columns']['description']['config']['wizards'];
$GLOBALS['TCA']['pages_language_overlay']['columns']['title']['config']['wizards'] = $GLOBALS['TCA']['pages']['columns']['title']['config']['wizards'];
$GLOBALS['TCA']['pages_language_overlay']['columns']['tx_seo_titletag']['config']['wizards'] = $GLOBALS['TCA']['pages']['columns']['tx_seo_titletag']['config']['wizards'];
?>