This repository has been archived by the owner on Nov 19, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathext_localconf.php
56 lines (49 loc) · 2.62 KB
/
ext_localconf.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
56
<?php
if (TYPO3_MODE=='BE') {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['softRefParser']['tx_imagemapwizard'] = "EXT:imagemap_wizard/classes/class.tx_imagemapwizard_softrefproc.php:&tx_imagemapwizard_softrefproc";
//$GLOBALS['TBE_MODULES_EXT']['xMOD_db_new_content_el']['addElClasses']['tx_imagemapwizard_wizicon'] = t3lib_extMgm::extPath($_EXTKEY).'classes/class.tx_imagemapwizard_wizicon.php';
}
require_once(t3lib_extMgm::extPath('imagemap_wizard') . 'classes/controller/class.tx_imagemapwizard_controller_wizard.php');
$typoscript = '
includeLibs.imagemap_wizard = EXT:imagemap_wizard/classes/class.tx_imagemapwizard_parser.php
tt_content.imagemap_wizard < tt_content.image
tt_content.imagemap_wizard.20.imgMax = 1
tt_content.imagemap_wizard.20.maxW >
tt_content.imagemap_wizard.20.1.imageLinkWrap >
tt_content.imagemap_wizard.20.1.params = usemap="####IMAGEMAP_USEMAP###"
tt_content.imagemap_wizard.20.1.stdWrap.postUserFunc = tx_imagemapwizard_parser->applyImageMap
tt_content.imagemap_wizard.20.1.stdWrap.postUserFunc.map.data = field:tx_imagemapwizard_links
tt_content.imagemap_wizard.20.1.stdWrap.postUserFunc.map.name = field:titleText // field:altText // field:imagecaption // field:header
tt_content.imagemap_wizard.20.1.stdWrap.postUserFunc.map.name.crop = 20
tt_content.imagemap_wizard.20.1.stdWrap.postUserFunc.map.name.case = lower
';
$imwizardConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['imagemap_wizard']);
if($imwizardConf['allTTCtypes']) {
$typoscript .= '
tt_content.imagemap_wizard.20.imgMax >
tt_content.image.20 < tt_content.imagemap_wizard.20
tt_content.imagemap_wizard.20.imgMax = 1
';
}
t3lib_extMgm::addTypoScript($_EXTKEY,'setup',$typoscript,43);
t3lib_extMgm::addPageTSConfig('
mod.wizards.newContentElement.wizardItems.common.elements.imagemap {
icon = EXT:imagemap_wizard/tt_content_imagemap.gif
title = LLL:EXT:imagemap_wizard/locallang.xml:imagemap.title
description = LLL:EXT:imagemap_wizard/locallang.xml:imagemap.description
tt_content_defValues {
CType = imagemap_wizard
}
}
mod.wizards.newContentElement.wizardItems.common.show := addToList(imagemap)
templavoila.wizards.newContentElement.wizardItems.common.elements.imagemap {
icon = EXT:imagemap_wizard/tt_content_imagemap.gif
title = LLL:EXT:imagemap_wizard/locallang.xml:imagemap.title
description = LLL:EXT:imagemap_wizard/locallang.xml:imagemap.description
tt_content_defValues {
CType = imagemap_wizard
}
}
templavoila.wizards.newContentElement.wizardItems.common.show := addToList(imagemap)
');
?>