Skip to content
Snippets Groups Projects
Commit 96c9d2c0 authored by Beatrycze Volk's avatar Beatrycze Volk
Browse files

Add option for disabling CSS and JS files

parent 5177e723
No related branches found
No related tags found
No related merge requests found
config {
tx_bison {
# cat=config.tx_bison; type=int[0-1]; label=Disable CSS files
disableCss = 0
# cat=config.tx_bison; type=int[0-1]; label=Disable JS files
disableJs = 0
}
}
plugin.tx_bison_recommender {
view {
# cat=plugin.tx_bison_recommender/file; type=string; label=Path to template root (FE)
......
page {
[{$plugin.tx_bison.disableCss} == 0]
includeCSS {
bison_bootstrap = EXT:bison/Resources/Public/Css/bootstrap-5.2.2-dist/bootstrap.min.css
bison_bootstrap {
......@@ -7,7 +9,9 @@ page {
}
bison_layout = EXT:bison/Resources/Public/Css/layout.css
}
[END]
[{$plugin.tx_bison.disableJs} == 0]
includeJSFooterlibs {
bison_bootstrap = EXT:bison/Resources/Public/JavaScript/bootstrap-5.2.2-dist/bootstrap.bundle.min.js
bison_bootstrap {
......@@ -19,6 +23,7 @@ page {
disableCompression = 1
}
}
[END]
}
plugin.tx_bison_recommender {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment