-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathext_tables.php
53 lines (47 loc) · 2.01 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
<?php
t3lib_div::loadTCA('tt_content');
$GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'][] = array(
0 => 'LLL:EXT:imagemap_wizard/locallang.xml:imagemap.title',
1 => 'imagemap_wizard',
2 => 'i/tt_content_image.gif',
);
$tempColumns = array (
'tx_imagemapwizard_links' => array(
'label' => 'LLL:EXT:imagemap_wizard/locallang.xml:tt_content.tx_imagemapwizard_links',
'config' => array (
'type' => 'user',
'userFunc' => 'tx_imagemapwizard_controller_wizard->renderForm',
'wizards' => array(
'imagemap' => array(
'type' => 'popup',
'script' => 'EXT:imagemap_wizard/wizard.php',
'title' => 'ImageMap',
'JSopenParams' => 'height=700,width=780,status=0,menubar=0,scrollbars=1',
'icon' => 'link_popup.gif',
),
'_VALIGN' => 'middle',
'_PADDING' => '4',
),
'softref'=>'tx_imagemapwizard',
),
),
);
t3lib_extMgm::addTCAcolumns("tt_content",$tempColumns,1);
$imwizardConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['imagemap_wizard']);
$GLOBALS['TCA']['tt_content']['types']['imagemap_wizard'] = $GLOBALS['TCA']['tt_content']['types']['image'];
t3lib_extMgm::addToAllTCAtypes('tt_content','tx_imagemapwizard_links', ($imwizardConf['allTTCtypes'] ? '' : 'imagemap_wizard') ,'after:image');
// CSH context sensitive help
t3lib_extMgm::addLLrefForTCAdescr('tt_content','EXT:imagemap_wizard/locallang_csh_ttc.xml');
if (TYPO3_MODE=='BE') {
$GLOBALS['TBE_MODULES_EXT']['xMOD_db_new_content_el']['addElClasses']['tx_imagemapwizard_wizicon'] = t3lib_extMgm::extPath($_EXTKEY).'classes/class.tx_imagemapwizard_wizicon.php';
}
if(version_compare(TYPO3_version,'4.4','>')) {
$icons = array(
'redo' => t3lib_extMgm::extRelPath($_EXTKEY) . 'res/arrow_redo.png',
'link' => t3lib_extMgm::extRelPath($_EXTKEY) . 'res/link_edit.png',
'zoomin' => t3lib_extMgm::extRelPath($_EXTKEY) . 'res/magnifier_zoom_in.png',
'zoomout' => t3lib_extMgm::extRelPath($_EXTKEY) . 'res/magnifier_zoom_out.png',
);
t3lib_SpriteManager::addSingleIcons($icons, $_EXTKEY);
}
?>