This repository has been archived by the owner on May 23, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
58 lines (52 loc) · 1.63 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
57
58
<?php
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(
function()
{
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'SD.SdGooglemaps',
'Gm',
[
'Map' => 'show'
],
// non-cacheable actions
[
'Map' => ''
]
);
// wizards
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'mod {
wizards.newContentElement.wizardItems.plugins {
elements {
gm {
icon = ' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('sd_googlemaps') . 'Resources/Public/Icons/user_plugin_gm.svg
title = LLL:EXT:sd_googlemaps/Resources/Private/Language/locallang_be.xlf:wizards.gm_plugin
description = LLL:EXT:sd_googlemaps/Resources/Private/Language/locallang_be.xlf:wizards.gm_plugin.description
tt_content_defValues {
CType = list
list_type = sdgooglemaps_gm
}
}
}
show = *
}
}'
);
// Register dataprovider for initial setup for TCA with extension manager configuration
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup']['tcaDatabaseRecord'][\SD\SdGooglemaps\Backend\FormDataProvider\MapRowInitialize::class] = [
'depends' => [
\TYPO3\CMS\Backend\Form\FormDataProvider\InitializeProcessedTca::class,
],
'before' => [
\TYPO3\CMS\Backend\Form\FormDataProvider\TcaColumnsProcessShowitem::class,
]
];
// Register positionPicker renderType
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1491201013] = [
'nodeName' => 'positionPicker',
'priority' => 70,
'class' => \SD\SdGooglemaps\Form\Element\PositionPickerElement::class
];
}
);