forked from joachimruhs/myttaddressmap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
81 lines (68 loc) · 2.51 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
// Prevent script from being called directly
defined('TYPO3') or die();
// encapsulate all locally defined variables
call_user_func(
function()
{
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Myttaddressmap',
'Map',
[
\WSR\Myttaddressmap\Controller\AddressController::class => 'ajaxSearch, list'
],
// non-cacheable actions
[
\WSR\Myttaddressmap\Controller\AddressController::class => 'ajaxSearch, list'
]
);
// Plugin for AJAX-calls
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Myttaddressmap',
'Ajax',
[\WSR\Myttaddressmap\Controller\AjaxController::class => 'ajaxEid'],
// non-cacheable actions
[\WSR\Myttaddressmap\Controller\AjaxController::class => 'ajaxEid']
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Myttaddressmap',
'SearchForm',
[\WSR\Myttaddressmap\Controller\AddressController::class => 'searchForm'],
// non-cacheable actions
[\WSR\Myttaddressmap\Controller\AddressController::class => 'searchForm']
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Myttaddressmap',
'SearchResult',
[\WSR\Myttaddressmap\Controller\AddressController::class => 'searchResult, searchForm'],
// non-cacheable actions
[\WSR\Myttaddressmap\Controller\AddressController::class => 'searchResult, searchForm']
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Myttaddressmap',
'SingleView',
[\WSR\Myttaddressmap\Controller\AddressController::class => 'singleView'],
// non-cacheable actions
[\WSR\Myttaddressmap\Controller\AddressController::class => 'singleView']
);
// wizards
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'mod {
wizards.newContentElement.wizardItems.plugins {
elements {
ajaxsearch {
iconIdentifier = extension-myttaddressmap-content-element
title = LLL:EXT:myttaddressmap/Resources/Private/Language/locallang_db.xlf:tx_myttaddressmap_domain_model_ajaxsearch
description = LLL:EXT:myttaddressmap/Resources/Private/Language/locallang_db.xlf:tx_myttaddressmap_domain_model_ajaxsearch.description
tt_content_defValues {
CType = list
list_type = myttaddressmap_map
}
}
}
show = *
}
}'
);
}
);