View on GitHub View on Contao

ZAD Style Switcher

An extension for Contao CMS

How it works

This module allows you to create and manage a style switcher in a Contao website, so that users can choose the preferred look of the pages. Anyway, styles must already exist, inserted as Contao managed styles or as external CSS files.

Browsing a page that contains this module, it will be dynamically loaded the style chosen by the user. Note that all Contao managed styles are loaded first, while only at the end the one choosen by the user is inserted: in this way you can override any setting.

The style chosen by the user is stored both as a session variable on the server as a permanent cookie (expiration 1 year) on the client. In this way you avoid to redo the same choice for each page.