Include CSS files by using page.includeCSS under TypoScript

TIP: For an easier work with CSS by using LESS in your TYPO3 Fluid-Templates, I recommend using the Fluid-Template-Manager (short FTM).

The including of CSS-Files by using TYPOScript is very easy. Just assign the files with the page.includeCSS, like:

page.includeCSS { 
  file1 = fileadmin/templates/css/style.css 
  file1.title = Default CSS
  file1.media = screen
  
  file2 = fileadmin/templates/css/print.css 
  file2.title = Print CSS
  file2.media = print
}
    • David THIBAULT
    • November 2nd, 2011

    Hello,
    Is it possible ton include Google Web Fonts from typoscript?
    If not, how can I include these fonts in my typo3 based website?

    Thanks.

  1. No trackbacks yet.