Skip to content

breizhwave/craft4-templateselect

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template Select plugin for Craft CMS 4.x [WORK IN PROGRESS]

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

Screenshot

Requirements

This plugin requires Craft CMS 4 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 breizhwave/craft4-templateselect:@dev
    
  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 %}

or if you have limited to a subfolder :

 {% include "_subfolder/subfolder2/" ~  entry.wavetemplate    %}

Brought to you by Superbig and wave.bzh

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 88.0%
  • Twig 12.0%