-
-
Notifications
You must be signed in to change notification settings - Fork 200
/
setup.typoscript
389 lines (360 loc) · 13.4 KB
/
setup.typoscript
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
# DEPENDENCIES
@import 'EXT:bootstrap_package/Configuration/TypoScript/ContentElement/setup.typoscript'
@import 'EXT:bootstrap_package/Configuration/TypoScript/Extension/setup.typoscript'
# HELPER
@import 'EXT:bootstrap_package/Configuration/TypoScript/Helper/Block.typoscript'
@import 'EXT:bootstrap_package/Configuration/TypoScript/Helper/PageClass.typoscript'
# FRAMEWORK
@import 'EXT:bootstrap_package/Configuration/TypoScript/Bootstrap5/setup.typoscript'
plugin.tx_bootstrappackage {
# BOOTSTRAP PACKAGE SETTINGS
settings {
overrideParserVariables = {$plugin.bootstrap_package.settings.overrideParserVariables}
cssSourceMapping = {$plugin.bootstrap_package.settings.cssSourceMapping}
}
}
page = PAGE
page {
typeNum = 0
shortcutIcon = {$page.favicon.file}
bodyTagCObject = COA
bodyTagCObject {
10 = TEXT
10.data = TSFE:id
10.noTrimWrap = | id="p|"|
20 =< lib.page.class
20.stdWrap.noTrimWrap = | class="|"|
wrap = <body|>
}
headerData {
// Flip ahead browsing for IE10/11
// http://msdn.microsoft.com/en-us/library/ie/jj883726(v=vs.85).aspx
10 = HMENU
10 {
special = browse
special {
items = prev|next
}
1 = TMENU
1.NO {
allWrap = <link rel="prev" href="|"> |*| <link rel="next" href="|">
doNotLinkIt = 1
stdWrap {
typolink {
parameter.data = field:uid
returnLast = url
}
}
}
}
}
10 = FLUIDTEMPLATE
10 {
# Template names will be generated automatically by converting the applied
# backend_layout, there is no explicit mapping necessary anymore.
#
# BackendLayout Key
# subnavigation_right_2_columns -> SubnavigationRight2Columns.html
#
# Backend Record
# uid: 1 -> 1.html
#
# Database Entry
# value: -1 -> None.html
# value: pagets__subnavigation_right_2_columns -> SubnavigationRight2Columns.html
templateName = TEXT
templateName {
cObject = TEXT
cObject {
data = pagelayout
required = 1
case = uppercamelcase
split {
token = pagets__
cObjNum = 1
1.current = 1
}
}
ifEmpty = Default
}
templateRootPaths {
0 = EXT:bootstrap_package/Resources/Private/Templates/Page/
1 = {$page.fluidtemplate.templateRootPath}
}
partialRootPaths {
0 = EXT:bootstrap_package/Resources/Private/Partials/Page/
1 = {$page.fluidtemplate.partialRootPath}
}
layoutRootPaths {
0 = EXT:bootstrap_package/Resources/Private/Layouts/Page/
1 = {$page.fluidtemplate.layoutRootPath}
}
dataProcessing {
1 = BK2K\BootstrapPackage\DataProcessing\ConstantsProcessor
1 {
as = theme
key = page.theme
}
10 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
10 {
levels = 3
includeSpacer = 1
as = mainnavigation
dataProcessing {
1628754217 = BK2K\BootstrapPackage\DataProcessing\IconsDataProcessor
1628754217 {
iconSet.field = nav_icon_set
iconIdentifier.field = nav_icon_identifier
iconFileFieldName = nav_icon
as = icon
if {
isTrue.stdWrap.cObject = COA
isTrue.stdWrap.cObject {
10 = TEXT
10.value = 1
10.if.isTrue = {$page.theme.navigation.icon.enable}
20 = TEXT
20.value = 1
20.if.isTrue = {$page.theme.navigation.dropdown.icon.enable}
}
}
}
}
}
20 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
20 {
entryLevel = 1
levels = 2
expandAll = 0
includeSpacer = 1
as = subnavigation
dataProcessing {
1628754217 = BK2K\BootstrapPackage\DataProcessing\IconsDataProcessor
1628754217 {
iconSet.field = nav_icon_set
iconIdentifier.field = nav_icon_identifier
iconFileFieldName = nav_icon
as = icon
if {
isTrue = {$page.theme.subnavigation.icon.enable}
}
}
}
}
30 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
30 {
special = rootline
special.range = 0|-1
includeNotInMenu = 1
as = breadcrumb
if {
value = {$page.theme.breadcrumb.enableLevel}
value {
insertData = 1
prioriCalc = 1
stdWrap.wrap = |-1
}
isGreaterThan {
data = level
}
}
dataProcessing {
1628754217 = BK2K\BootstrapPackage\DataProcessing\IconsDataProcessor
1628754217 {
iconSet.field = nav_icon_set
iconIdentifier.field = nav_icon_identifier
iconFileFieldName = nav_icon
as = icon
}
}
}
40 = TYPO3\CMS\Frontend\DataProcessing\LanguageMenuProcessor
40 {
languages = {$page.theme.language.languageValue}
as = languagenavigation
}
50 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
50 {
special = {$page.theme.meta.navigationType}
special.value = {$page.theme.meta.navigationValue}
includeNotInMenu = {$page.theme.meta.includeNotInMenu}
as = metanavigation
if {
isTrue = {$page.theme.meta.navigationValue}
}
}
1629126321 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
1629126321 {
special = {$page.theme.footernavigation.navigationType}
special.value = {$page.theme.footernavigation.navigationValue}
includeNotInMenu = {$page.theme.footernavigation.includeNotInMenu}
levels = {$page.theme.footernavigation.levels}
as = footernavigation
if {
isTrue = {$page.theme.footernavigation.navigationValue}
}
dataProcessing {
1629202464 = BK2K\BootstrapPackage\DataProcessing\IconsDataProcessor
1629202464 {
iconSet.field = nav_icon_set
iconIdentifier.field = nav_icon_identifier
iconFileFieldName = nav_icon
as = icon
}
}
}
1553883874 = BK2K\BootstrapPackage\DataProcessing\StaticFilesProcessor
1553883874 {
files {
normal = {$page.logo.file}
inverted = {$page.logo.fileInverted}
}
as = logo
}
}
settings {
logo {
height = {$page.logo.height}
width = {$page.logo.width}
linktitle = {$page.logo.linktitle}
}
}
variables {
pageTitle = TEXT
pageTitle.data = page:title
siteTitle = TEXT
siteTitle.data = siteLanguage:websiteTitle//site:websiteTitle//site:identifier
rootPage = TEXT
rootPage.data = leveluid:0
pagelayout = TEXT
pagelayout {
data = pagelayout
replacement.10 {
search = pagets__
replace =
}
ifEmpty = default
}
logoAlt = COA
logoAlt {
10 = TEXT
10 {
data = siteLanguage:websiteTitle//site:websiteTitle//site:identifier
noTrimWrap = || logo|
if.isFalse = {$page.logo.alt}
}
20 = TEXT
20 {
value = {$page.logo.alt}
if.isTrue = {$page.logo.alt}
}
}
# BreadcrumbExtendedValue should be used to display the title of a
# single record. For example the title of a news record.
breadcrumbExtendedValue = COA
breadcrumbExtendedValue {
}
}
stdWrap.replacement {
1 {
search = http://###BACKEND_URL###/
replace.typolink {
parameter = typo3/
returnLast = url
}
}
2 {
search = ###FRONTEND_URL###
replace.typolink {
parameter.data = leveluid:0
returnLast = url
}
}
3 {
search = ###CURRENTYEAR###
replace {
data = date:U
strftime = %Y
}
}
4 {
search = ###SPACE###
replace {
char = 32
}
}
}
}
meta {
viewport = {$page.meta.viewport}
robots = {$page.meta.robots}
apple-mobile-web-app-capable = {$page.meta.apple-mobile-web-app-capable}
X-UA-Compatible = {$page.meta.compatible}
X-UA-Compatible {
attribute = http-equiv
}
# Google
google = {$page.meta.google}
google-site-verification = {$page.meta.google-site-verification}
}
includeCSSLibs {
googlewebfont = https://fonts.googleapis.com/css?display=swap&family={$page.theme.googleFont.font}:{$page.theme.googleFont.weight}
googlewebfont {
external = 1
disableCompression = 1
excludeFromConcatenation = 1
if {
isTrue = {$page.theme.googleFont.enable}
}
}
bootstrappackageicon = EXT:bootstrap_package/Resources/Public/Fonts/bootstrappackageicon.min.css
}
includeJSLibs {
modernizr = EXT:bootstrap_package/Resources/Public/Contrib/modernizr/modernizr.min.js
modernizr.forceOnTop = 1
modernizr.async = 1
}
includeJSFooterlibs {
#### Contrib
photoswipe_core = EXT:bootstrap_package/Resources/Public/Contrib/photoswipe/photoswipe.umd.min.js
photoswipe_ui = EXT:bootstrap_package/Resources/Public/Contrib/photoswipe/photoswipe-lightbox.umd.min.js
photoswipe_caption = EXT:bootstrap_package/Resources/Public/Contrib/photoswipe/photoswipe-dynamic-caption-plugin.umd.min.js
#### Custom Modules
bootstrap_accordion = EXT:bootstrap_package/Resources/Public/JavaScript/Dist/bootstrap.accordion.min.js
bootstrap_popover = EXT:bootstrap_package/Resources/Public/JavaScript/Dist/bootstrap.popover.min.js
bootstrap_stickyheader = EXT:bootstrap_package/Resources/Public/JavaScript/Dist/bootstrap.stickyheader.min.js
bootstrap_smoothscroll = EXT:bootstrap_package/Resources/Public/JavaScript/Dist/bootstrap.smoothscroll.min.js
bootstrap_lightbox = EXT:bootstrap_package/Resources/Public/JavaScript/Dist/bootstrap.lightbox.min.js
bootstrap_navbar = EXT:bootstrap_package/Resources/Public/JavaScript/Dist/bootstrap.navbar.min.js
}
}
# COMPONENTS
@import 'EXT:bootstrap_package/Configuration/TypoScript/CookieConsent/setup.typoscript'
@import 'EXT:bootstrap_package/Configuration/TypoScript/Skiplink/setup.typoscript'
@import 'EXT:bootstrap_package/Configuration/TypoScript/GoogleTagManager/setup.typoscript'
config {
absRefPrefix = auto
no_cache = {$config.no_cache}
pageTitleFirst = 1
pageTitleSeparator = -
pageTitleSeparator.noTrimWrap = | | |
linkVars = L(int)
prefixLocalAnchors = {$config.prefixLocalAnchors}
doctype = html5
removeDefaultJS = {$config.removeDefaultJS}
admPanel = {$config.admPanel}
debug = 0
sendCacheHeaders = {$config.sendCacheHeaders}
index_enable = 1
index_externals = 1
index_metatags = 1
headerComment = {$config.headerComment}
// Language Settings
sys_language_overlay = 1
sys_language_mode = content_fallback
// Compression and Concatenation of CSS and JS Files
compressJs = {$config.compressJs}
compressCss = {$config.compressCss}
concatenateJs = {$config.concatenateJs}
concatenateCss = {$config.concatenateCss}
}