Skip to content

Commit 51c8863

Browse files
committed
[TASK] Lint typoscript
1 parent 1085629 commit 51c8863

12 files changed

+252
-158
lines changed

.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ indent_size = 2
7474
[*.typoscript]
7575
indent_style = space
7676
indent_size = 2
77+
[*.tsconfig]
78+
indent_style = space
79+
indent_size = 2
7780

7881
# XLF-Files
7982
[*.xlf]
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
1-
mod.wizards {
1+
mod {
2+
wizards {
23
newContentElement {
3-
wizardItems {
4-
common {
5-
elements {
6-
startpilot_textimage {
7-
iconIdentifier = default-icon
8-
title = Text with Image
9-
description = Image positions: Top, Bottom, Left, Right
10-
tt_content_defValues {
11-
CType = startpilot_textimage
12-
}
13-
}
14-
}
4+
wizardItems {
5+
common {
6+
elements {
7+
startpilot_textimage {
8+
iconIdentifier = default-icon
9+
title = Text with Image
10+
description = Image positions: Top, Bottom, Left, Right
11+
tt_content_defValues {
12+
CType = startpilot_textimage
13+
}
1514
}
15+
}
1616
}
17+
}
1718
}
18-
}
19+
}
1920

20-
mod.web_layout.tt_content.preview.startpilot_textimage = EXT:startpilot/Resources/Private/ContentElements/BackendPreviews/BE_Textimage.html
21+
web_layout.tt_content.preview.startpilot_textimage = EXT:startpilot/Resources/Private/ContentElements/BackendPreviews/BE_Textimage.html
22+
}

Configuration/TSconfig/TCEFORM.tsconfig

+73-77
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,83 @@
11
TCEFORM {
2-
pages {
3-
// General
4-
nav_title.disabled = 0
5-
subtitle.disabled = 1
6-
7-
// Metadata
8-
abstract.disabled = 1
9-
author.disabled = 1
10-
author_email.disabled = 1
11-
lastUpdated.disabled = 1
12-
keywords.disabled = 1
13-
14-
// Appearance
15-
layout.disabled = 1
16-
newUntil.disabled = 1
17-
18-
// Behavior
19-
cache_timeout.disabled = 1
20-
cache_tags.disabled = 1
21-
no_cache.disabled = 0
22-
23-
// Resources
24-
TSconfig.disabled = 0
25-
26-
// Categories
27-
categories.disabled = 1
28-
29-
// Access
30-
fe_group.disabled = 1
31-
fe_login_mode.disabled = 1
32-
33-
// Notes
34-
rowDescription.disabled = 1
35-
}
36-
37-
tt_content {
38-
header_layout {
39-
altLabels {
40-
1 = Headline H1
41-
2 = Headline H2
42-
3 = Headline H3
43-
4 = Headline H4
44-
5 = Headline H5
45-
6 = Headline H6
46-
}
47-
48-
types {
49-
gridelements_pi1 {
50-
altLabels {
51-
0 = Headline Large
52-
1 = Headline Medium
53-
2 = Headline Small
54-
}
55-
56-
removeItems = 3,4,5,6
57-
}
58-
}
59-
}
60-
61-
imageorient {
62-
removeItems = 1,2,9,10
63-
}
64-
65-
imagecols {
66-
keepItems = 1,2,3,4,6
67-
}
68-
69-
frame_class {
70-
removeItems = ruler-before, ruler-after, indent, indent-left, indent-right, indent-righ
71-
addItems {
72-
container = Container
73-
}
2+
pages {
3+
// General
4+
nav_title.disabled = 0
5+
subtitle.disabled = 1
6+
7+
// Metadata
8+
abstract.disabled = 1
9+
author.disabled = 1
10+
author_email.disabled = 1
11+
lastUpdated.disabled = 1
12+
keywords.disabled = 1
13+
14+
// Appearance
15+
layout.disabled = 1
16+
newUntil.disabled = 1
17+
18+
// Behavior
19+
cache_timeout.disabled = 1
20+
cache_tags.disabled = 1
21+
no_cache.disabled = 0
22+
23+
// Resources
24+
TSconfig.disabled = 0
25+
26+
// Categories
27+
categories.disabled = 1
28+
29+
// Access
30+
fe_group.disabled = 1
31+
fe_login_mode.disabled = 1
32+
33+
// Notes
34+
rowDescription.disabled = 1
35+
}
36+
37+
tt_content {
38+
header_layout {
39+
altLabels {
40+
1 = Headline H1
41+
2 = Headline H2
42+
3 = Headline H3
43+
4 = Headline H4
44+
5 = Headline H5
45+
6 = Headline H6
46+
}
47+
48+
types {
49+
gridelements_pi1 {
50+
altLabels {
51+
0 = Headline Large
52+
1 = Headline Medium
53+
2 = Headline Small
54+
}
55+
56+
removeItems = 3,4,5,6
7457
}
58+
}
59+
}
7560

76-
layout.disabled = 1
77-
space_before_class.disabled = 1
78-
space_after_class.disabled = 1
79-
linkToTop.disabled = 1
61+
imageorient {
62+
removeItems = 1,2,9,10
8063
}
8164

82-
tx_news_domain_model_news {
65+
imagecols {
66+
keepItems = 1,2,3,4,6
67+
}
8368

69+
frame_class {
70+
removeItems = ruler-before, ruler-after, indent, indent-left, indent-right, indent-righ
71+
addItems {
72+
container = Container
73+
}
8474
}
75+
76+
layout.disabled = 1
77+
space_before_class.disabled = 1
78+
space_after_class.disabled = 1
79+
linkToTop.disabled = 1
80+
}
8581
}
8682

8783
TCAdefaults.tt_content.frame_class = none
+13-13
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
TCEMAIN {
2-
permissions {
3-
# Owner be_users UID for new pages:
4-
userid = 2
2+
permissions {
3+
# Owner be_users UID for new pages:
4+
userid = 2
55

6-
# Owner be_groups UID for new pages:
7-
groupid = 1
6+
# Owner be_groups UID for new pages:
7+
groupid = 1
88

9-
# User can do anything (default):
10-
user = show,edit,delete,new,editcontent
9+
# User can do anything (default):
10+
user = show,edit,delete,new,editcontent
1111

12-
# Group can do anything
13-
group = show,edit,delete,new,editcontent
12+
# Group can do anything
13+
group = show,edit,delete,new,editcontent
1414

15-
# Everybody can see nothing
16-
everybody =
17-
}
18-
}
15+
# Everybody can see nothing
16+
everybody =
17+
}
18+
}
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
mod.web_layout.BackendLayouts {
2-
MainTemplate {
3-
title = MainTemplate
4-
name = MainTemplate
5-
icon = EXT:startpilot/ext_icon.png
6-
config {
7-
backend_layout {
8-
colCount = 1
9-
rowCount = 1
10-
rows {
11-
1 {
12-
columns {
13-
1 {
14-
name = Main Area
15-
colPos = 0
16-
colspan = 1
17-
}
18-
}
19-
}
20-
}
2+
MainTemplate {
3+
title = MainTemplate
4+
name = MainTemplate
5+
icon = EXT:startpilot/ext_icon.png
6+
config {
7+
backend_layout {
8+
colCount = 1
9+
rowCount = 1
10+
rows {
11+
1 {
12+
columns {
13+
1 {
14+
name = Main Area
15+
colPos = 0
16+
colspan = 1
17+
}
2118
}
19+
}
2220
}
21+
}
2322
}
23+
}
2424
}
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
mod.wizards {
2-
newContentElement {
3-
wizardItems {
4-
common {
5-
header = Custom Content Elements
6-
}
7-
8-
common.show = *
9-
}
2+
newContentElement {
3+
wizardItems {
4+
common {
5+
header = Custom Content Elements
6+
show = *
7+
}
108
}
9+
}
1110
}
+4-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
options.pageTree.showPageIdWithTitle = 1
2-
options.showDuplicate = 1
1+
options {
2+
pageTree.showPageIdWithTitle = 1
3+
showDuplicate = 1
4+
}

0 commit comments

Comments
 (0)