https://github.com/jako/switchtemplate
Switch resource templates on the fly in MODX Revolution
https://github.com/jako/switchtemplate
modx modx-extra modx-revolution
Last synced: about 2 months ago
JSON representation
Switch resource templates on the fly in MODX Revolution
- Host: GitHub
- URL: https://github.com/jako/switchtemplate
- Owner: Jako
- License: gpl-2.0
- Created: 2014-09-26T21:36:26.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2025-03-09T16:34:14.000Z (3 months ago)
- Last Synced: 2025-03-27T16:50:28.982Z (2 months ago)
- Topics: modx, modx-extra, modx-revolution
- Language: PHP
- Homepage: https://jako.github.io/SwitchTemplate/
- Size: 11 MB
- Stars: 9
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# SwitchTemplate
Switch resource templates on the fly,
for the MODX Revolution content management framework.## Features
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.SwitchTemplate could be used for different purposes: As Ajax connector, as
language switcher ...## Installation
MODX Package Management
## Usage
Install via package manager and create template switching settings in a custom
manager page.## Documentation
For more information please read the documentation on https://jako.github.io/SwitchTemplate/