[TYPO3-german] css in typo3

Bernd Pier macbepepi at mac.com
Mon Nov 14 09:31:48 CET 2016


Am 14.11.16 um 02:50 schrieb aaaaa vvvvv:
> Hallo,
>
> ich habe diese Woche Typo3 installiert und finde auch nach langer Suche
> keine Lösung, wie ich eine .css einbinden kann.
> Bisher sieht das Setup so aus:
>
> [code language=TypoScript]
> page = PAGE
> page {
> config.doctype = html5
> meta.author = CK
> meta.description = Intranet.
>
> page.includeCSS {
>   file1 = fileadmin/style.css
>
>  }
>
> 10 = FILE
> 10.file = fileadmin/template.html  }
> [/code]
>
> Habe natürlich die genannten Dateien auf der Oberfläche unter Fileadmin
> hochgeladen. WEnn ich dort die .html aufrufe bekomme ich auch die
> gestylte Ausgabe nur eben nicht, wenn ich die Vorschaufunktion verwende.
>
> Gruß
Hi,

wenn das dein Code ist, dann hast du innerhalb von page ein page. 
Versuch doch mal sowas:
  [code language=TypoScript]
  page = PAGE
  page {
  config.doctype = html5
  meta.author = CK
  meta.description = Intranet.

  includeCSS {
    file1 = fileadmin/style.css

   }

  10 = FILE
  10.file = fileadmin/template.html  }
  [/code]


More information about the TYPO3-german mailing list