breizhwave / craft4-templateselect
A fieldtype that allows you to select a template from a dropdown.
Installs: 85
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 9
Open Issues: 0
Type:craft-plugin
Requires
- craftcms/cms: ^4.0
This package is auto-updated.
Last update: 2024-04-17 15:38:14 UTC
README
A fieldtype that allows you to select a template from the site templates folder.
Requirements
This plugin requires Craft CMS 4 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require breizhwave/craft4-templateselect:@dev
-
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/.
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 %}