I want to load for every page the riht criticalCSS File.
So I saved them like this:
fileadmin/critical1.css for TSFE:id=1
fileadmin/critical2.css for TSFE:id=2
and so on. As there are a lot of pages I want the TS to be completely dynamic and NOT like this:
[globalVar = TSFE:id=1]
page {
cssInline {
10 = FILE
10.file = fileadmin/critical1.css
}
}
[global]
I want it like this:
page {
cssInline {
10 = FILE
10.file= fileadmin/critical{page:uid}.css
}
}
or this
page {
cssInline {
10 = FILE
10.file= fileadmin/critical$GLOBALS['TSFE']->id.css
}
}
But it is not working like this. Does anyone know how to do this?