Start Kontakt Impressum Sitemap

CSS-Datei parsen

Es kommt vor dass man nur eine bestimmte Zeile seiner CSS-Datei ändern will. Extra eine zusätzliche Datei erstellen? Joey hat mal wieder eine supi Idee:

TypoScript
page.headerData.100 = COA
page.headerData.100 {
    wrap = <style>|</style>
    10 = TEMPLATE
    10 {
        template = FILE
        template.file = /path/to/your/cssfile.css
        marks {
            BACKGROUNDIMAGE = IMG_RESROURCE
            BACKGROUNDIMAGE {
                # your image definition here
            }
        }
    }
}

#You just have to insert the marker ###BACKGROUNDIMAGE### into your css file.
Informationen zu Hotels und City Hannover