TemplateSwitcher
Votes: 18
Tags: Style, plugin, template management
Submitted: Jun 30, 2006
Released: Jun 30, 2006
Downloads: 1673
License: Public Domain
Package Website
TemplateSwitcher 1.2
Works with the following Version(s): 0.9.2.1
Switch to a specified template when a page is requested
Download
- repo-567.txt (1673 downloads)
Description
Switch templates either on a page-by-page basis, or using cookies to save the user's template choice for a sitewide template change.
Instructions
Create a new plugin and copy the code from the TemplateSwitcher.plugin.txt file. Set its System events to OnLoadWebDocument. Set its Configuration to this value:
&usecookie=Use Cookie;list;no,yes;no
To switch templates, add 'template=nameoftemplate' to the URL of any links where you want the template to be switched.
NOTE: Pages cannot be cached.
To enable/disable sitewide/cookie support, select the configuration value for Use Cookie to yes/no.
To prevent a document's template being switched, put an HTML comment with the word 'donotswitch' in the document's content.UpdatesUpdated version

Please login to comment.