Skip to content

Commit 08f6117

Browse files
committed
[TASK] Add page.tsconfig
1 parent 6c16b0e commit 08f6117

2 files changed

Lines changed: 72 additions & 0 deletions

File tree

Configuration/page.tsconfig

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
TCEFORM {
2+
tt_content{
3+
4+
header_layout {
5+
types{
6+
bootstrap_accordion{
7+
altLabels.1 = H1
8+
altLabels.2 = H2
9+
altLabels.3 = H3
10+
altLabels.4 = H4
11+
altLabels.5 = H5
12+
}
13+
bootstrap_alert < .bootstrap_accordion
14+
bootstrap_card < .bootstrap_accordion
15+
}
16+
}
17+
18+
header_position {
19+
types{
20+
bootstrap_accordion{
21+
removeItems = left,right,center
22+
addItems.text-start = left
23+
addItems.text-center = center
24+
addItems.text-end = right
25+
}
26+
bootstrap_alert < .bootstrap_accordion
27+
bootstrap_card < .bootstrap_accordion
28+
}
29+
}
30+
31+
space_before_class {
32+
types{
33+
bootstrap_accordion{
34+
removeItems = extra-small, small, medium, large, extra-large
35+
addItems.mt-1 = 1 Spacer
36+
addItems.mt-2 = 2 Spacers
37+
addItems.mt-3 = 3 Spacers
38+
addItems.mt-4 = 4 Spacers
39+
addItems.mt-5 = 5 Spacers
40+
}
41+
bootstrap_alert < .bootstrap_accordion
42+
bootstrap_card < .bootstrap_accordion
43+
}
44+
}
45+
space_after_class {
46+
types{
47+
bootstrap_accordion{
48+
removeItems = extra-small, small, medium, large, extra-large
49+
addItems.mb-1 = 1 Spacer
50+
addItems.mb-2 = 2 Spacers
51+
addItems.mb-3 = 3 Spacers
52+
addItems.mb-4 = 4 Spacers
53+
addItems.mb-5 = 5 Spacers
54+
}
55+
bootstrap_alert < .bootstrap_accordion
56+
bootstrap_card < .bootstrap_accordion
57+
}
58+
}
59+
60+
}
61+
}

ext_localconf.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
<?php
22
declare(strict_types=1);
33
defined('TYPO3') or die();
4+
use TYPO3\CMS\Core\Information\Typo3Version;
5+
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
6+
use TYPO3\CMS\Core\Utility\GeneralUtility;
7+
8+
$versionInformation = GeneralUtility::makeInstance(Typo3Version::class);
9+
// Only include page.tsconfig if TYPO3 version is below 12 so that it is not imported twice.
10+
if ($versionInformation->getMajorVersion() > 13) {
11+
ExtensionManagementUtility::addPageTSConfig('
12+
@import "EXT:content_blocks_bootstrap/Configuration/page.tsconfig"
13+
');
14+
}

0 commit comments

Comments
 (0)