Dynamisches CSS

Demo auf dieser Seite: Schriftgröße/Menü ändern -> Browser schliessen -> wischnat.de noch einmal besuchen -> Einstellungen wurden gespeichert :-)

Hier die Minidoku, noch auf Englisch...

1 Install the Extension

2 In your main TS-template: Include static from extensions: FE Control Center

3 replace a template-mark with temp.cssSelector example: page.10.marks.MYMARKER < temp.cssSelector

4a If you use page.CSS_inlineStyle and config.inlineStyle2TempFile use the constants {$mainFontSize}, {$mainBackgound} and {$mainFontColor} in your css.

(see constants.txt in typo3conf/ext/gov_fe_control/static ;)

4b If you use page.includeCSS.[array] use one/some of these conditions:

[userFunc = user_fontstyle_a()]

[userFunc = user_fontstyle_b()]

[userFunc = user_fontstyle_c()]

[userFunc = user_layout_a()]

[userFunc = user_layout_b()]

[userFunc = user_layout_c()]

to alter your styleheets.

5 Change the cookie domain in typo3conf/ext/gov_fe_control/scripts/gov_styleswitch.php (will be configurable via TS soon :)

6 Voilà :-)

fileadmin/downloads/T3X_gov_fe_control-0_0_0-z-200502281931.t3x

sponsored by

netcreators.nl 

Zum Seitenanfang