Login / Status
developer.Resource
Home . Documentation . Document Library . Extension Manuals
Sponsors
hosted by punkt.deTYPO3 and Open Source Magazine

Chapter 1. CSS Styleswitcher

Extension Key: is_styleswitcher

Copyright 2000-2002, Ingo Schommer, <me@chillu.com>

This document is published under the Open Content License

available from http://www.opencontent.org/opl.shtml

The content of this document is related to TYPO3

- a GNU/GPL CMS/Framework available from www.typo3.com

1.1. Introduction

What does it do?

This extension lets you insert several custom styled CSS-Files as "Page-Styles".  Features: Per-Page-Styles, Cookies, Alternative-Styles, Default-Styles, Basic-Styles, Template-driven. Stylesheet-Switching is often used for alternative Font-Sizing (Accessibility) or alternative Layouts (Design).

Features:

  • Fast switching via javascript (no page-reload)

  • Cookie-functionality (save style-preferences for later browsing-sessions)

  • Include CSS-files as content-elements

  • Per-Page-Styles (include only on on certain pages)

  • Default-Styles - Basic-Styles (always included, not selectable by the user)

  • Template-driven (set surrounding code, IDs, etc)

  • Compatible to browser-integrated style-listings (Opera, Mozilla, ...)

Thanks to Rob Ballou for creating this wonderfully modularized PHP-Class, which basically does all the dirty work. This extension is just a slight modification of his GPLed work, see http://contrastsweb.com/switcher/