Repository navigation
Expand file tree
/
Copy pathext_localconf.php
More file actions
45 lines (43 loc) · 2.23 KB
/
Copy pathext_localconf.php
File metadata and controls
45 lines (43 loc) · 2.23 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
<?php
defined('TYPO3') || die();
(static function() {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Inv',
'Main',
[
\Weisgerber\Inv\Controller\ClothesController::class => 'list, show, new, create, edit, update, delete',
\Weisgerber\Inv\Controller\GameController::class => 'list, show, new, create, edit, update, delete',
\Weisgerber\Inv\Controller\MovieController::class => 'list, show, new, create, edit, update, delete',
\Weisgerber\Inv\Controller\ItemController::class => 'list, show, new, create, edit, update, delete',
\Weisgerber\Inv\Controller\LocationController::class => 'index, list, show, new, create, edit, update, delete'
],
// non-cacheable actions
[
\Weisgerber\Inv\Controller\ClothesController::class => 'list, show, new, create, edit, update, delete',
\Weisgerber\Inv\Controller\GameController::class => 'list, show, new, create, edit, update, delete',
\Weisgerber\Inv\Controller\MovieController::class => 'list, show, new, create, edit, update, delete',
\Weisgerber\Inv\Controller\ItemController::class => 'list, show, new, create, edit, update, delete',
\Weisgerber\Inv\Controller\LocationController::class => 'index, list, show, new, create, edit, update, delete'
]
);
// wizards
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'mod {
wizards.newContentElement.wizardItems.plugins {
elements {
main {
iconIdentifier = inv-plugin-main
title = LLL:EXT:inv/Resources/Private/Language/locallang_db.xlf:tx_inv_main.name
description = LLL:EXT:inv/Resources/Private/Language/locallang_db.xlf:tx_inv_main.description
tt_content_defValues {
CType = list
list_type = inv_main
}
}
}
show = *
}
}'
);
})();
## EXTENSION BUILDER DEFAULTS END TOKEN - Everything BEFORE this line is overwritten with the defaults of the extension builder