-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathext_localconf.php
executable file
·83 lines (79 loc) · 1.9 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
80
81
82
83
<?php
defined('TYPO3') or die();
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
use HDNET\Faq\Controller\QuestionController;
use HDNET\Faq\Controller\FaqController;
ExtensionUtility::configurePlugin(
'Faq', // Extension name
'Faq', // Plugin name
// all actions
[
FaqController::class => 'index',
],
// Non-cacheable actions
[
FaqController::class => 'index',
]
);
ExtensionUtility::configurePlugin(
'Faq', // Extension name
'FaqAll', // Plugin name
// all actions
[
FaqController::class => 'all',
],
// Non-cacheable actions
[
FaqController::class => 'all',
]
);
ExtensionUtility::configurePlugin(
'Faq', // Extension name
'Question', // Plugin name
// all actions
[
QuestionController::class => 'index, submit',
],
// Non-cacheable actions
[
QuestionController::class => 'submit',
]
);
ExtensionUtility::configurePlugin(
'Faq', // Extension name
'FaqSingleCategory', // Plugin name
// all actions
[
FaqController::class => 'singleCategory',
],
// Non-cacheable actions
[
FaqController::class => 'singleCategory',
]
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
mod {
wizards.newContentElement.wizardItems.plugins {
elements {
faq {
iconIdentifier = extension-faq
title = LLL:EXT:faq/Resources/Private/Language/locallang.xlf:plugin.Faq
description = Create FAQ Plugin to handle the FAQ output
tt_content_defValues {
CType = list
list_type = faq_faq
}
}
faq_all_category {
iconIdentifier = extension-faq
title = LLL:EXT:faq/Resources/Private/Language/locallang.xlf:plugin.FaqAll
description = Create FAQ Plugin to handle the FAQ output incl. all the categories
tt_content_defValues {
CType = list
list_type = faq_faqall
}
}
}
}
}
');