Downloads » Resources » TemplateSwitcher

TemplateSwitcher

  • Currently 3.4285714285714/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Votes: 7

TemplateSwitcher 1.2

Updated version

Works with MODx Version(s): 0.9.2.1
Submitted: Jun 30th 2006 | License: Public Domain | Downloads: 1394

Switch to a specified template when a page is requested

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.

Previous Releases



Extras

No results found.


( back to top )