towardstudio/sectionfield
最新稳定版本:3.0.1
Composer 安装命令:
composer require towardstudio/sectionfield
包简介
Creates a section selector field in the CMS
README 文档
README
Creates a section selector field in the CMS
Requirements
This plugin requires Craft CMS 5 or later. For Craft 4 please use version 2.0.0
Installation
To install the plugin, follow these instructions.
- Open your terminal and go to your Craft project:
cd /path/to/project/craft
- Then tell Composer to load the plugin:
composer require towardstudio/sectionfield
- In the Control Panel, go to Settings → Plugins and click the “Install” button for Section Field.
Usage
Sections
{% set sections = craft.sectionField.sections(entry.myFieldHandle) %}
{% for section in sections %}
{{ section.name }}
{% endfor %}
Entries from the selected section/s
{% set entries = craft.sectionField.entries(entry.myFieldHandle) %}
{% for entry in entries.all() %}
{{ entry.title }}
{% endfor %}
Brought to you by Toward
统计信息
- 总下载量: 184
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-04-11