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

sjelfull/Craft-TemplateSelect

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

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"