Skip to content

alexrubin/Craft-TemplateSelect

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 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"

About

Allows you to select templates for an entry in Craft CMS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%