Allows you to select templates for an entry in Craft CMS
Switch branches/tags
Nothing to show
Clone or download
Latest commit b264d5c Jun 15, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
templateselect Update version Jun 15, 2018
README.md Added option to limit list to subfolder of templates path, #1 Jan 5, 2015

README.md

Template Select for Craft

A fieldtype that allows you to select a template from a dropdown.

Install

  • Download the zip
  • Unzip in your craft/plugins folder
  • Make sure the plugin folder is called templateselect

Usage

If you want to include a template, you may do it like this in your template:

{% include entry.fieldHandle %}

Limit to subfolder

By using the config setting templateselectSubfolder, you can limit the list to a subfolder of your templates folder.

In general.php, add this line:

̀"templateselectSubfolder" => "subfolder"