Skip to content

Silverstripe module for choosing arbitrary templates/layouts w/ one model/controller

Notifications You must be signed in to change notification settings

craiglyons/silverstripe-liquid-layout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

silverstripe-liquid-layout

Page/Controller that allows choosing an arbitrary template or layout for display.

As the current version bends the rules of SilverStripe's MVC conventions, it's recommended only as a tool for creating functional mockups w/ full templates before the models & controllers need to be built.

Requirements

SilverStripe framework 3.0 +

SilverStripe CMS 3.0 +

Maintainer Contact

Installation

Clone into a directory called liquid-layout, /dev/build.

Usage

Create a LiquidLayout page in the CMS; the "Settings" tab will allow your choice of Template & Layout.

Standard file structure is assumed (themeDir/templates/ & themeDir/templates/Layout/).

If the module is able to source your directories, it will provide a dropdown list of all available .ss files as choices. Otherwise, TextFields will be provided.

If a choice is not provided for Template or Layout, it will fall back on the respective Page.ss template or layout.

TODO

Provide a way to restrict choices to a subset or maybe a subdirectory via config. This could then be a viable way to allow content authors to choose from a series of templates to present the same data.

About

Silverstripe module for choosing arbitrary templates/layouts w/ one model/controller

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages