Coder Social home page Coder Social logo

jako / switchtemplate Goto Github PK

View Code? Open in Web Editor NEW
9.0 4.0 4.0 9.92 MB

Switch resource templates on the fly in MODX Revolution

Home Page: https://jako.github.io/SwitchTemplate/

License: GNU General Public License v2.0

JavaScript 27.57% PHP 68.51% CSS 1.90% SCSS 2.01%
modx-revolution modx modx-extra

switchtemplate's Introduction

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/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.