MODX EXTRA

SwitchTemplate

Switch resource templates on the fly

Creator: Thomas Jakobi (jako)

1.2.5-pl (910 KB) Other Versions Need help installing this extra?

Screenshots

About SwitchTemplate

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 ...

Information

Released
December 29, 2020
Supported Versions
2.6 – Current
Supported Database
MySQL
Downloads
4,938
License
GPLv2

New in SwitchTemplate 1.2.5

  • Bugfix for not found switching file extensions
More

Current Releases

1.2.5-pl
December 29, 2020
2.6 – Current
1.2.4-pl
November 19, 2020
2.6 – Current
1.2.3-pl
February 23, 2019
2.6 – Current
More
View Deprecated Releases

More from Thomas Jakobi

FilterWhere

FilterWhere

Filter resources with request parameters

TailwindHelper

TailwindHelper

MODX Helper for Tailwind

CronManager

CronManager

Create and run cronjobs within the manager

LangSuggest

LangSuggest

Language suggestion in the frontend