SwitchTemplate Icon

SwitchTemplate

By Thomas Jakobi (jako)

SwitchTemplate changes the template of a MODX resource on the fly with a request parameter. Different settings with different setting keys could be set in a custom manager page.

With each setting a different template could be used to output the resource. As well the template type could be set to chunk or template. If the template type is chunk the resource variables and template variables are prepared as placeholder before the chunk is parsed. The caching of the output of SwitchTemplate could be enabled for each separate setting. The output is cached separate for each resource and each setting. Each setting could be enabled or disabled for selected resources. The output could be filtered to valid AMP markup.

SwitchTemplate could be used for different purposes: As Ajax connector, as language switcher, AMP output ...

For full details, see the SwitchTemplate documentation

This project is hosted on GitHub: https://github.com/Jako/SwitchTemplate

Thomas Jakobi


New in SwitchTemplate 1.2.3

  • Show debug mode in custom manager page
  • System settings tab in custom manager page

More

Information

Released
February 23, 2019
Supported Versions
2.6 – Current
Downloads
3,084
License
GPLv2

Previous Versions

1.2.2-pl
February 26, 2018
2.5 – Current
1.2.1-pl
December 4, 2017
2.5 – Current
1.2.0-pl2
September 12, 2017
2.3 – Current
1.2.0-pl
September 8, 2017
2.3 – Current
1.1.0-pl
March 10, 2015
2.3 – Current
1.0.1-pl
October 21, 2014
2.3 – Current
1.0.0-pl2
September 27, 2014
2.3 – Current
1.0.0-pl
September 26, 2014
2.3 – Current
More

More from Thomas Jakobi

SuperBoxSelect

Advanced Listbox/Resource List template variable

View
L
LangRouter

Language context router for use with Babel

View
DaterangeTV

Date range custom template variable

View
Image+

Advanced Image Template Variable

View