-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathext_localconf.php
More file actions
61 lines (54 loc) · 2.25 KB
/
Copy pathext_localconf.php
File metadata and controls
61 lines (54 loc) · 2.25 KB
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
59
60
61
<?php
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(
function() {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'SYRADEV.RtSimpleosm',
'Sosm',
[
'Osm' => 'displayMap'
],
// non-cacheable actions
[
'Osm' => ''
]
);
// wizards
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'mod {
wizards.newContentElement.wizardItems.plugins {
elements {
sosm {
iconIdentifier = rt_simpleosm-plugin-sosm
title = LLL:EXT:rt_simpleosm/Resources/Private/Language/locallang_db.xlf:tx_rt_simpleosm_sosm.name
description = LLL:EXT:rt_simpleosm/Resources/Private/Language/locallang_db.xlf:tx_rt_simpleosm_sosm.description
tt_content_defValues {
CType = list
list_type = rtsimpleosm_sosm
}
}
}
show = *
}
}'
);
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'rt_simpleosm-plugin-sosm',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:rt_simpleosm/Resources/Public/Icons/user_plugin_sosm.svg']
);
// Page module hook for backend plugin display
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['Rtsimpleosm'] = 'SYRADEV\RtSimpleosm\Hooks\PageLayoutViewDrawItemHook';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry']['1609276343'] = [
'nodeName' => 'rtGPSCoordinates',
'priority' => 40,
'class' => \SYRADEV\RtSimpleosm\FormElements\RtGPSCoodinates::class
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry']['1609276344'] = [
'nodeName' => 'rtCopyrigthsLogo',
'priority' => 40,
'class' => \SYRADEV\RtSimpleosm\FormElements\RtCopyrigthsLogo::class
];
}
);