This repository has been archived by the owner on Jun 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathext_tables.php
executable file
·55 lines (49 loc) · 1.95 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
t3lib_div::loadTCA('pages');
$GLOBALS['TCA']['pages']['columns']['description']['config']['wizards'] = array(
'SERPWizard' => array(
'type' => 'userFunc',
'userFunc' => 'EXT:comvosserptool/Classes/tx_comvosserptool_SERPWizard.php:tx_comvosserptool_SERPWizard->SERPWizard',
'params' => array(
'emptyValue' => 'No description!'
)
));
$GLOBALS['TCA']['pages']['columns']['title']['config']['wizards'] = array(
'SERPWizard' => array(
'type' => 'userFunc',
'userFunc' => 'EXT:comvosserptool/Classes/tx_comvosserptool_SERPWizard.php:tx_comvosserptool_SERPWizard->SERPWizard',
'params' => array(
'previewSelector' => '.srs-title',
'overrideWithSelector' => 'input[name*=\\\[tx_comvosserptool_metatitle\\\]]',
'maxLength' => 70,
'emptyValue' => 'No title!'
)
));
$tempColumns = array(
'tx_comvosserptool_metatitle' => array(
'exclude' => 1,
'label' => 'LLL:EXT:comvosserptool/locallang_db.xml:pages.tx_comvosserptool_metatitle',
'config' => array(
'type' => 'input',
'size' => '30',
'wizards' => array(
'SERPWizard' => array(
'type' => 'userFunc',
'userFunc' => 'EXT:comvosserptool/Classes/tx_comvosserptool_SERPWizard.php:tx_comvosserptool_SERPWizard->SERPWizard',
'params' => array(
'fallbackFieldSelector' =>'input[name*=\\\[title\\\]]',
'previewSelector' => '.srs-title',
'maxLength' => 70,
'emptyValue' => 'No title!'
)
)
)
)
)
);
t3lib_extMgm::addTCAcolumns("pages", $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes("pages", "tx_comvosserptool_metatitle","","before:description");
?>