-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thomas Baumann schrieb: > Hello list, > > is there a function or a plugin which allows to change the > current tpl ? E.g. I need for several users different styles, > i.e. "REALLY BIG FONTS" or "OTHER COLORS" or "PrintPreview" etc. > How can this be implemented ? That depends (as always). If you want to change just want to change colors, font sizes, backgrounds or shuffle around some parts of the page, then you can use alternate CSS stylesheets. If you want to change the layout completely or have certain parts of the page on/off dynamically or different for each user, you need to use templates (see topic wiki:tpl:templates on the wiki). Also, do you want to a) switch stylesheets/templates automatically based on the user logged in or do you want to b) let the user choose himself? a) with stylesheets: not implemented yet, but can be easily done within a template. you would have to decide, were to store the mapping between user and style to use (cookie, file on server, etc.) a) with templates: look at the topic plugin:template_selector on the wiki. this might be a starting point b) with stylesheets: this can be implemented via a bit of javascript code. Google for "javascript style switcher" (alistapart.com has a good article on this). Firebox also provides a menu entry for switching between alternate stylesheets. b) with templates: not implemented yet. Have your template display a select box with different styles it supports and then get it via e.g. $['_GET']['style'] HTH, Chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Seeing only garbage? Get my OpenPGP key here: http://chrisarndt.de/contact.html iD8DBQFDX5wdXWGCGKl166oRAn0xAJ95DceFDxGjv1osazhFY5MdpL1VZQCgnHbK 3WA23Xhi3VRm48jxWUwNimk= =z5dr -----END PGP SIGNATURE----- -- DokuWiki mailing list - more info at http://wiki.splitbrain.org/wiki:mailinglist