Skip to content

Commit bf5b103

Browse files
committed
[TASK] Create basics and clean up codes
1 parent d766a3a commit bf5b103

21 files changed

Lines changed: 246 additions & 126 deletions

File tree

Configuration/page.tsconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ TCEFORM {
1212
}
1313
bootstrap_alert < .bootstrap_accordion
1414
bootstrap_card < .bootstrap_accordion
15+
bootstrap_jumbotron < .bootstrap_accordion
1516
}
1617
}
1718

@@ -40,6 +41,7 @@ TCEFORM {
4041
}
4142
bootstrap_alert < .bootstrap_accordion
4243
bootstrap_card < .bootstrap_accordion
44+
bootstrap_jumbotron < .bootstrap_accordion
4345
}
4446
}
4547
space_after_class {
@@ -54,6 +56,7 @@ TCEFORM {
5456
}
5557
bootstrap_alert < .bootstrap_accordion
5658
bootstrap_card < .bootstrap_accordion
59+
bootstrap_jumbotron < .bootstrap_accordion
5760
}
5861
}
5962

Configuration/setup.typoscript

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
lib.contentBlock {
2+
partialRootPaths {
3+
100 = EXT:content_blocks_bootstrap/Resources/Private/Partials/ContentElements/
4+
}
5+
}
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
identifier: sk/bootstrap_columns
2+
fields:
3+
- identifier: columns
4+
type: Palette
5+
label: Manage columns
6+
fields:
7+
- identifier: bootstrap_columns
8+
prefixField: false
9+
label: Columns
10+
type: Select
11+
renderType: selectSingle
12+
default: 1
13+
items:
14+
- label: '1'
15+
value: 1
16+
- label: '2'
17+
value: 2
18+
- label: '3'
19+
value: 3
20+
- label: '4'
21+
value: 4
22+
- label: '5'
23+
value: 5
24+
- label: '6'
25+
value: 6
26+
- label: '7'
27+
value: 7
28+
- label: '8'
29+
value: 8
30+
- label: '9'
31+
value: 9
32+
- label: '10'
33+
value: 10
34+
- label: '11'
35+
value: 11
36+
- label: '12'
37+
value: 12
38+
- identifier: bootstrap_columns_medium
39+
prefixField: false
40+
label: Columns Tablet
41+
type: Select
42+
renderType: selectSingle
43+
default: 2
44+
items:
45+
- label: '1'
46+
value: 1
47+
- label: '2'
48+
value: 2
49+
- label: '3'
50+
value: 3
51+
- label: '4'
52+
value: 4
53+
- label: '5'
54+
value: 5
55+
- label: '6'
56+
value: 6
57+
- label: '7'
58+
value: 7
59+
- label: '8'
60+
value: 8
61+
- label: '9'
62+
value: 9
63+
- label: '10'
64+
value: 10
65+
- label: '11'
66+
value: 11
67+
- label: '12'
68+
value: 12
69+
- identifier: bootstrap_columns_large
70+
prefixField: false
71+
label: Columns Desktop
72+
type: Select
73+
renderType: selectSingle
74+
default: 3
75+
items:
76+
- label: '1'
77+
value: 1
78+
- label: '2'
79+
value: 2
80+
- label: '3'
81+
value: 3
82+
- label: '4'
83+
value: 4
84+
- label: '5'
85+
value: 5
86+
- label: '6'
87+
value: 6
88+
- label: '7'
89+
value: 7
90+
- label: '8'
91+
value: 8
92+
- label: '9'
93+
value: 9
94+
- label: '10'
95+
value: 10
96+
- label: '11'
97+
value: 11
98+
- label: '12'
99+
value: 12
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
identifier: sk/bootstrap_dismissible
2+
fields:
3+
- identifier: bootstrap_dismissible
4+
prefixField: false
5+
label: LLL:EXT:content_blocks_bootstrap/Resources/Private/Language/locallang.xlf:bootstrap_alert.field.dismissible.label
6+
description: LLL:EXT:content_blocks_bootstrap/Resources/Private/Language/locallang.xlf:bootstrap_alert.field.dismissible.description
7+
type: Checkbox
8+
renderType: checkboxToggle
9+
default: 0
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
identifier: sk/bootstrap_header_class
2+
fields:
3+
- identifier: bootstrap_header_class
4+
prefixField: false
5+
label: Header Class
6+
type: Select
7+
renderType: selectSingle
8+
items:
9+
- label: 'None'
10+
value:
11+
- label: 'Display 1'
12+
value: display-1
13+
- label: 'Display-2'
14+
value: display-2
15+
- label: 'Display-3'
16+
value: display-3
17+
- label: 'Display-4'
18+
value: display-4
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
identifier: sk/bootstrap_header_palette
2+
fields:
3+
- identifier: bootstrap_header_palette
4+
type: Palette
5+
label: Headers
6+
fields:
7+
- identifier: header
8+
useExistingField: true
9+
- identifier: header_layout
10+
useExistingField: true
11+
- identifier: header_position
12+
useExistingField: true
13+
- identifier: sk/bootstrap_header_class
14+
type: Basic
15+
- type: Linebreak
16+
- identifier: subheader
17+
useExistingField: true
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
identifier: sk/bootstrap_theme_color
2+
fields:
3+
- identifier: bootstrap_theme_color
4+
prefixField: false
5+
label: LLL:EXT:content_blocks_bootstrap/Resources/Private/Language/locallang.xlf:bootstrap_alert.field.color.label
6+
description: LLL:EXT:content_blocks_bootstrap/Resources/Private/Language/locallang.xlf:bootstrap_alert.field.color.description
7+
type: Select
8+
renderType: selectSingle
9+
default: primary
10+
items:
11+
- label: 'Primary'
12+
value: primary
13+
- label: 'Secondary'
14+
value: secondary
15+
- label: 'Success'
16+
value: success
17+
- label: 'Danger'
18+
value: danger
19+
- label: 'Warning'
20+
value: warning
21+
- label: 'Info'
22+
value: info
23+
- label: 'Light'
24+
value: light
25+
- label: 'Dark'
26+
value: dark

ContentBlocks/ContentElements/bootstrap-accordion/config.yaml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,8 @@ group: content_blocks_bootstrap
66
basics:
77
- TYPO3/Appearance
88
fields:
9-
- identifier: accordion_header
10-
type: Palette
11-
label: Headers
12-
description:
13-
fields:
14-
- identifier: header
15-
useExistingField: true
16-
- identifier: header_layout
17-
useExistingField: true
18-
- identifier: header_position
19-
useExistingField: true
20-
- type: Linebreak
21-
- identifier: subheader
22-
useExistingField: true
9+
- identifier: sk/bootstrap_header_palette
10+
type: Basic
2311
- identifier: items
2412
type: Collection
2513
labelField: title

ContentBlocks/ContentElements/bootstrap-accordion/templates/frontend.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div id="c{data.uid}" class="{data.space_before_class} {data.space_after_class}">
2-
<f:render partial="header" arguments="{_all}"/>
2+
<f:render partial="Header" arguments="{_all}"/>
33
<div class="accordion">
44
<f:for each="{data.items}" as="item" iteration="iterator">
55
<div class="accordion-item">

ContentBlocks/ContentElements/bootstrap-accordion/templates/partials/header.html

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)