Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

sjelfull/Craft-TemplateSelect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

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"