Skip to content

Commit

Permalink
[TASK] add Development mode for felayout
Browse files Browse the repository at this point in the history
  • Loading branch information
dmh committed Mar 30, 2017
1 parent c277d90 commit a469dfa
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 36 deletions.
9 changes: 9 additions & 0 deletions Configuration/TypoScript/Library/page.includeCSS.setupts
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,12 @@
}
}
[global]
[globalVar = LIT:dev = {$themes.configuration.feLayoutMode}]
page {
includeCSS {
rteFrontend = EXT:theme_t3kit/Resources/Public/Extensions/Rtehtmlarea/Css/rteFrontend.css
rteFrontend {
}
}
}
[global]
94 changes: 59 additions & 35 deletions Configuration/TypoScript/Library/page.includeJS.setupts
Original file line number Diff line number Diff line change
@@ -1,41 +1,65 @@
page {
includeJSFooterlibs {
jquery = {$themes.configuration.feLayoutPath}/jquery.js
jquery {
external = 0
# disableCompression =
# excludeFromConcatenation =
[globalVar = LIT:less = {$themes.configuration.feLayoutMode}]
page {
includeJSFooterlibs {
jquery = {$themes.configuration.feLayoutPath}/jquery.js
jquery {
external = 0
# disableCompression =
# excludeFromConcatenation =
}
bootstrap = {$themes.configuration.feLayoutPath}/bootstrap.js
bootstrap {
external = 0
# disableCompression =
# excludeFromConcatenation =
}
components = {$themes.configuration.feLayoutPath}/components.js
components {
external = 0
# disableCompression =
# excludeFromConcatenation =
}
}
bootstrap = {$themes.configuration.feLayoutPath}/bootstrap.js
bootstrap {
external = 0
# disableCompression =
# excludeFromConcatenation =
}
components = {$themes.configuration.feLayoutPath}/components.js
components {
external = 0
# disableCompression =
# excludeFromConcatenation =
includeJSFooter {
mainjs = {$themes.configuration.feLayoutPath}/main.js
mainjs {
external = 0
# disableCompression =
# excludeFromConcatenation =
}
}
}
}
[global]

# custom.js is disabled by default, but it could be enabled if it needed
page {
includeJSFooter {
mainjs = {$themes.configuration.feLayoutPath}/main.js
mainjs {
external = 0
# disableCompression =
# excludeFromConcatenation =
[globalVar = LIT:less = {$themes.configuration.feLayoutMode}]
page {
includeJSFooterlibs {
jquery = {$themes.configuration.feLayoutPath}/jquery.js
jquery {
external = 0
# disableCompression =
# excludeFromConcatenation =
}
bootstrap = {$themes.configuration.feLayoutPath}/bootstrap.js
bootstrap {
external = 0
# disableCompression =
# excludeFromConcatenation =
}
components = {$themes.configuration.feLayoutPath}/components.js
components {
external = 0
# disableCompression =
# excludeFromConcatenation =
}
}
includeJSFooter {
mainjs = {$themes.configuration.feLayoutPath}/main.js
mainjs {
external = 0
# disableCompression =
# excludeFromConcatenation =
}
}
# customJs = fileadmin/custom/js/custom.js
# customJs {
# external = 0
# disableCompression =
# excludeFromConcatenation =
# }

}
}
[global]
2 changes: 1 addition & 1 deletion Configuration/TypoScript/Library/themes.basic.constantsts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ themes.configuration.siteDomain = t3kit.testserver.pixelant.nu
# cat=theme,expert/development_mode/; type=options[Development Mode=1,Production Mode=0]; label= Development Mode
themes.configuration.isDevelopment = Development Mode

# cat=theme,expert/layout/; type=options[Less=less,Css=css]; label=Felayout type
# cat=theme,expert/layout/; type=options[Less=less,Css=css,Development=dev]; label=FElayout type
themes.configuration.feLayoutMode = less

# cat=theme,expert/layout/; type=string; label=Path to felayout
Expand Down

0 comments on commit a469dfa

Please sign in to comment.