Skip to content

Commit d5bed1f

Browse files
committed
[TASK] Imporve typoscript and add tslint.yml
1 parent 02aaaa1 commit d5bed1f

File tree

5 files changed

+74
-66
lines changed

5 files changed

+74
-66
lines changed

Configuration/TypoScript/config/config.typoscript

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ config {
1212

1313
no_cache = 0
1414
sendCacheHeaders = 1
15+
cache_period = 86400
1516
enableContentLengthHeader = 0
1617

1718
extTarget = _blank
@@ -34,8 +35,6 @@ config {
3435
concatenateCss = 1
3536
compressJs = 1
3637
concatenateJs = 1
37-
sendCacheHeaders = 1
38-
cache_period = 86400
3938
}
4039

4140
## Disable Cache when logged in BE
+10-11
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
## Constants ##
22
@import 'EXT:fluid_styled_content/Configuration/TypoScript/constants.typoscript'
33

4-
# customsubcategory=100=General
54
page {
5+
# customsubcategory=100=General
66
template {
77
# cat=startpilot: Settings/100/150; type=string; label=Layout Root Path: Path to layouts
88
layoutRootPath = EXT:startpilot/Resources/Private/Page/Layouts/
@@ -11,6 +11,15 @@ page {
1111
# cat=startpilot: Settings/100/170; type=string; label=Template Root Path: Path to templates
1212
templateRootPath = EXT:startpilot/Resources/Private/Page/Templates/
1313
}
14+
# customsubcategory=300=Meta
15+
meta {
16+
# cat=startpilot: Meta/400/100; type=string; label=viewport
17+
viewport = width=device-width, initial-scale=1
18+
# cat=startpilot: Meta/400/120; type=string; label=apple-mobile-web-app-capable
19+
apple-mobile-web-app-capable = yes
20+
# cat=startpilot: Meta/400/140; type=string; label=google
21+
google = translate
22+
}
1423
}
1524

1625
# customsubcategory=200=Favicon
@@ -20,13 +29,3 @@ favicon = EXT:startpilot/Resources/Public/Images/Icons/Device/Icon.png
2029
# customsubcategory=120=Google Webmaster/Analytics
2130
# cat=startpilot: Google Tools/200/100; type=string; label= Google Webmaster ID - (content="xxxxxxxx")
2231
googlewebmaster =
23-
24-
# customsubcategory=300=Meta
25-
page.meta {
26-
# cat=startpilot: Meta/400/100; type=string; label=viewport
27-
viewport = width=device-width, initial-scale=1
28-
# cat=startpilot: Meta/400/120; type=string; label=apple-mobile-web-app-capable
29-
apple-mobile-web-app-capable = yes
30-
# cat=startpilot: Meta/400/140; type=string; label=google
31-
google = translate
32-
}

Configuration/TypoScript/fluid/dynamicContent.typoscript

+50-43
Original file line numberDiff line numberDiff line change
@@ -9,58 +9,65 @@
99
# This lib is from the Bootstrap Package by Benjamin Kott >> https://github.com/benjaminkott/bootstrap_package
1010
#
1111
#################
12-
fluid.dynamicContent = COA
13-
fluid.dynamicContent {
14-
5 = LOAD_REGISTER
15-
5 {
16-
colPos.cObject = TEXT
17-
colPos.cObject {
18-
field = colPos
19-
ifEmpty.cObject = TEXT
20-
ifEmpty.cObject {
21-
value.current = 1
22-
ifEmpty = 0
12+
fluid {
13+
dynamicContent = COA
14+
dynamicContent {
15+
5 = LOAD_REGISTER
16+
5 {
17+
colPos.cObject = TEXT
18+
colPos.cObject {
19+
field = colPos
20+
ifEmpty.cObject = TEXT
21+
ifEmpty.cObject {
22+
value.current = 1
23+
ifEmpty = 0
24+
}
2325
}
24-
}
2526

26-
pageUid.cObject = TEXT
27-
pageUid.cObject {
28-
field = pageUid
29-
ifEmpty.data = TSFE:id
30-
}
27+
pageUid {
28+
cObject = TEXT
29+
cObject {
30+
field = pageUid
31+
ifEmpty.data = TSFE:id
32+
}
33+
}
3134

32-
contentFromPid.cObject = TEXT
33-
contentFromPid.cObject {
34-
data = DB:pages:{register:pageUid}:content_from_pid
35-
data.insertData = 1
36-
}
35+
contentFromPid.cObject = TEXT
36+
contentFromPid.cObject {
37+
data = DB:pages:{register:pageUid}:content_from_pid
38+
data.insertData = 1
39+
}
3740

38-
wrap.cObject = TEXT
39-
wrap.cObject {
40-
field = wrap
41+
wrap.cObject = TEXT
42+
wrap.cObject {
43+
field = wrap
44+
}
4145
}
42-
}
4346

44-
20 = CONTENT
45-
20 {
46-
table = tt_content
47-
select {
48-
includeRecordsWithoutDefaultTranslation = 1
49-
orderBy = sorting
50-
where = colPos={register:colPos}
51-
where.insertData = 1
52-
pidInList.data = register:pageUid
53-
pidInList.override.data = register:contentFromPid
54-
}
47+
20 = CONTENT
48+
20 {
49+
table = tt_content
50+
select {
51+
includeRecordsWithoutDefaultTranslation = 1
52+
orderBy = sorting
53+
where = colPos={register:colPos}
54+
where.insertData = 1
55+
pidInList {
56+
data = register:pageUid
57+
override.data = register:contentFromPid
58+
}
59+
}
5560

56-
stdWrap {
57-
dataWrap = {register:wrap}
58-
required = 1
61+
stdWrap {
62+
dataWrap = {register:wrap}
63+
required = 1
64+
}
5965
}
66+
67+
90 = RESTORE_REGISTER
6068
}
6169

62-
90 = RESTORE_REGISTER
70+
dynamicContentSlide =< fluid.dynamicContent
71+
dynamicContentSlide.20.slide = -1
6372
}
6473

65-
fluid.dynamicContentSlide =< fluid.dynamicContent
66-
fluid.dynamicContentSlide.20.slide = -1

Configuration/TypoScript/page/page.typoscript

+4-10
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ page {
1616
override.field = backend_layout
1717
split {
1818
token = pagets__
19-
1.current = 1
20-
1.wrap = |
19+
1 {
20+
current = 1
21+
wrap = |
22+
}
2123
}
2224
}
2325

@@ -94,14 +96,6 @@ page {
9496
}
9597
}
9698

97-
98-
###
99-
## Disable indexing
100-
###
101-
# [globalVar = TSFE:page|no_search = 1]
102-
# page.meta.robots = noindex,follow
103-
# [end]
104-
10599
###
106100
## applicationContext
107101
###

tslint.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
paths:
2+
- public/typo3conf/ext/startpilot/Configuration/TypoScript
3+
sniffs:
4+
- class: Indentation
5+
parameters:
6+
useSpaces: true
7+
indentPerLevel: 2
8+
- class: RepeatingRValue
9+
disabled: true

0 commit comments

Comments
 (0)