Home  Extras  MODx Add-Ons  TemplateSwitcher

TemplateSwitcher



Forums Support Thread 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 | Author: sottwell

Works with the following Version(s): 0.9.2.1

Switch to a specified template when a page is requested


Download


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




Sub-Packages



Previous Releases



Comments

Please login to comment.

Close ]


 
 
 

Contact Us | Team Blog | FAQ | Site Credits

© 2005-2009 the MODx CMS project. All rights reserved. Privacy Policy | Terms of Service