sjelfull / craft3-templateselect

A fieldtype that allows you to select a template from the site templates folder.

Home Page:https://superbig.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Template Select plugin for Craft CMS 3.x

A fieldtype that allows you to select a template from the site templates folder.

Screenshot

Requirements

This plugin requires Craft CMS 3.0.0-beta.23 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require superbig/craft3-templateselect
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Template Select.

Configuring Template Select

You may limit the template list to a subfolder of the site template folder.

The path is relative, i.e. subfolder/subfolder2/.

Subfolder

Using Template Select

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

{% include entry.fieldHandle %}

Brought to you by Superbig

About

A fieldtype that allows you to select a template from the site templates folder.

https://superbig.co

License:MIT License


Languages

Language:PHP 88.0%Language:Twig 12.0%