-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathext_localconf.php
63 lines (51 loc) · 1.86 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
59
60
61
62
63
<?php
defined('TYPO3') or die();
call_user_func(
function()
{
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Myleaflet',
'Ajaxmap',
[
\WSR\Myleaflet\Controller\AddressController::class => 'ajaxSearch'
],
// non-cacheable actions
[
\WSR\Myleaflet\Controller\AddressController::class => 'ajaxSearch'
]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Myleaflet',
'SingleView',
[
\WSR\Myleaflet\Controller\AddressController::class => 'show'
],
// non-cacheable actions
[
\WSR\Myleaflet\Controller\AddressController::class => 'show'
]
);
// wizards
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'mod {
wizards.newContentElement.wizardItems.plugins {
elements {
ajaxmap {
iconIdentifier = extension-myleaflet-content-element
title = LLL:EXT:myleaflet/Resources/Private/Language/locallang.xlf:tx_myleaflet_ajaxmap.name
description = LLL:EXT:myleaflet/Resources/Private/Language/locallang.xlf:tx_myleaflet_ajaxmap.description
tt_content_defValues {
CType = list
list_type = myleaflet_ajaxmap
}
}
}
show = *
}
}'
);
}
);
// for use with extension extender
//$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tt_address']['extender'][\FriendsOfTYPO3\TtAddress\Domain\Model\Address::class]['ext_ttaddress']
// = 'EXT:myleaflet/Classes/Domain/Model/Address.php';