Creates a section selector field in the CMS
This plugin requires Craft CMS 5 or later. For Craft 4 please use version 2.0.0
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.
{% set sections = craft.sectionField.sections(entry.myFieldHandle) %}
{% for section in sections %}
{{ section.name }}
{% endfor %}
{% set entries = craft.sectionField.entries(entry.myFieldHandle) %}
{% for entry in entries.all() %}
{{ entry.title }}
{% endfor %}
Brought to you by Toward