Typo3 – Einbinden von CSS Dateien

Search
  • Blog
  • About
  • Services
  • Work
  • Contact
  • News
  • Articles
  • Twitter

  • TYPO3 – Bild Qualität ändern
  • Typoscript – JavaScript im Footer auslagern
  • Typo3 – tt_news Dokument speichern und Webseite anzeigen
  • Templavoila – Maximale Bildgröße im Contentbereich
  • Typo3 – tt_news cache deaktivieren
Blog Archiv
  • Typo3 – Auslagern von Typoscript in externe Datei
  • Typo3 – Einbinden von canonical Tag
  • Typo3 – Browserweiche (Conditional Comments)
  • Typo3 – onfocus=”blurLink(this)” in Sitemaps entfernen
  • Typo3 – Sitemap target definieren
Tutorials Archiv

11th February, 2007

Typo3 – Einbinden von CSS Dateien

2 comments

Es gibt 2 Möglichkeiten CSS Dateien in Typoscript einzubinden. Die einfachere Methode ist es über die Anweisung page.includeCSS einzubinden.

// Typoscript Setup
page.includeCSS {
	file1 = fileadmin/styles/basic.css
	file1.title = Standardansicht
	file1.media = screen

	file2 = fileadmin/styles/print.css
	file2.title = Drucken
	file2.media = print
}

Alternativ kann man auch CSS im Headerobjekt manuell einbinden. Diese Art der Einbindung ermöglicht auch beliebige weitere Einbindungen wie JS-Scripts u.a.

// Typoscript Setup
page.headerData.5 = TEXT
page.headerData.5.value (
	@import "fileadmin/css/style.css";
)

Tags: css, ts, tutorials, typo3, typoscript

Kategorie tutorials | 2 comments

Page 2 of 2«12


RSS
Follow me on Twitter

About this blog

This website was developed by Markus Bäck based in Tutzing (Starnberger See) using XHTML, CSS, JavaScript and PHP, handcoded in Notepad++. Powered by the Almighty Wordpress.

Resources

  • CSS-Tricks
  • faktor23.de
  • Smashing Magazine

Blogroll

  • Oxid Freelancer
  • TYPO3 Agentur München
  • TYPO3 Freelancer
  • TYPO3 Programmierer

Work

  • stream5 GmbH
  • Guido Schindler Delikatessen | Feinkost - Bistro - Partyservice - Starnberger See
  • ViCommerce GmbH
Copyright © 2012 just4freaks.de Designed and managed by Webdesign Starnberg