-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_localconf.php
More file actions
68 lines (67 loc) · 2.53 KB
/
Copy pathext_localconf.php
File metadata and controls
68 lines (67 loc) · 2.53 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
62
63
64
65
66
67
68
<?php
// Register content element icons
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'tx_wsbootstrapcomponents_accordion',
\TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider::class,
[
'name' => 'stack-overflow',
]
);
$iconRegistry->registerIcon(
'tx_wsbootstrapcomponents_carddeck',
\TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider::class,
[
'name' => 'columns',
]
);
$iconRegistry->registerIcon(
'tx_wsbootstrapcomponents_cards',
\TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider::class,
[
'name' => 'square-o',
]
);
$iconRegistry->registerIcon(
'tx_wsbootstrapcomponents_carousel',
\TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider::class,
[
'name' => 'sliders',
]
);
$iconRegistry->registerIcon(
'tx_wsbootstrapcomponents_jumbotron',
\TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider::class,
[
'name' => 'minus-square-o',
]
);
$iconRegistry->registerIcon(
'tx_wsbootstrapcomponents_modal',
\TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider::class,
[
'name' => 'lightbulb-o',
]
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ws_bootstrapcomponents/Configuration/PageTSconfig/NewContentElementWizard.ts">'
);
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup']['tcaDatabaseRecord'][\WSBOOTSTRAPCOMPONENTS\WsBootstrapcomponents\Form\FormDataProvider\TcaColPosItem::class] = [
'depends' => [
\TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseRowDefaultValues::class,
],
'before' => [
\TYPO3\CMS\Backend\Form\FormDataProvider\TcaSelectItems::class,
],
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup']['tcaDatabaseRecord'][\WSBOOTSTRAPCOMPONENTS\WsBootstrapcomponents\Form\FormDataProvider\TcaCTypeItem::class] = [
'depends' => [
\TYPO3\CMS\Backend\Form\FormDataProvider\TcaSelectItems::class,
],
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ws_bootstrapcomponents/Configuration/PageTSconfig/BackendPreview.ts">'
);
// Add backend preview hook
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['ws_bootstrapcomponents'] =
WSBOOTSTRAPCOMPONENTS\WsBootstrapcomponents\Hooks\PageLayoutViewDrawItem::class;