breizhwave/craft4-templateselect
Composer 安装命令:
composer require breizhwave/craft4-templateselect
包简介
A fieldtype that allows you to select a template from a dropdown.
README 文档
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 %}
统计信息
- 总下载量: 95
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-05-17

