Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
TWiki Skins | ||||||||
Line: 244 to 244 | ||||||||
An example would be invoking the printable mode, which is achieved by applying ?cover=print . The view.print.tmpl simply invokes the viewprint template for the current skin which then can appropriately include all other used templates for the current skin. Where the printable mode be applied by using SKIN , all skins would have the same printable appearance.
The full skin path is built up as follows: SKIN setting (or ?skin if it is set), then COVER setting is added, then ?cover . | ||||||||
Added: | ||||||||
> > |
Conditional Skin ActivationTWiki skins can be activated conditionally using IfStatements. For example, you might want to use a mobile skin for iPhone and Android user agents, and the default skin otherwise. This example uses the print skin on iPhone and Android:* Set SKIN = %IF{ "'%HTTP{"User-Agent"}%'~'*iPhone*' OR '%HTTP{"User-Agent"}%'~'*Android*'" then="print, pattern" else="topmenu, pattern" }% | |||||||
Hard-Coded Skins |