PHPackages                             charliedev/section-field - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. charliedev/section-field

AbandonedCraft-plugin[Utility &amp; Helpers](/categories/utility)

charliedev/section-field
========================

Field type that allows the selection of Craft sections.

1.1.0(7y ago)1129.4k7[6 issues](https://github.com/charliedevelopment/craft3-section-field/issues)1MITPHP

Since Jan 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/charliedevelopment/craft3-section-field)[ Packagist](https://packagist.org/packages/charliedev/section-field)[ RSS](/packages/charliedev-section-field/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (4)Used By (1)

Section Field for Craft 3
=========================

[](#section-field-for-craft-3)

This plugin provides a field type for choosing sections. This allows content administrators to select from available singles, channels, and structures. Entries using this field can then access these selections in their templates.

Requirements
------------

[](#requirements)

- Craft CMS 3.0.0-RC1 or above

Installation
------------

[](#installation)

1. Open a terminal and navigate to your project folder:

```
cd /path/to/project
```

2. Require the package to download it via Composer:

```
composer require charliedev/section-field
```

3. Install the plugin on the `Settings -> Plugins` page in the Craft control panel.

**--- or ---**

3. Install the plugin via the command line:

```
./craft install/plugin section-field
```

Usage
-----

[](#usage)

### Creating a Section Field

[](#creating-a-section-field)

1. Create a new field in your Craft control panel via the Settings -&gt; Fields panel.
2. Select *Section* as the field type.
3. Choose which sections will be available as options under *Allowed Sections*.
4. Check the *Allow Multiple* checkbox if applicable.
5. Attach the new field to a section.

### Editing a Section Field

[](#editing-a-section-field)

The form controls for a section field are generated according to that individual field's configuration. A field is configured with a whitelist of allowed sections to use, and sections available on an entry are a combination of the whitelist and the sections the current user is allowed to edit.

- If only one selection is allowed, the field is a set of radio buttons. If the field is not required, an additional "None" option is provided, and will be selected by default.
- If multiple selections are allowed, the field is a set of checkboxes. If the field is required, at least one box must be checked.

### Templating with a Section Field

[](#templating-with-a-section-field)

In a Twig template, you can retrieve the data from a section field as you would from any other field type. If the field is configured to allow a single selection, it will provide the section ID as an integer. If the field is configured to allow multiple selections, it will provide the section ID(s) as an array.

See the example below, where `mySectionField` is a section field that determines which section(s) to display entries from.

```
{% set sections = entry.mySectionField %}

{% set sectionEntries = craft.entries.sectionId(sections) %}

{% for sectionEntry in sectionEntries %}

	{# Display sectionEntry #}

{% endfor %}
```

---

*Built for [Craft CMS](https://craftcms.com/) by [Charlie Development](http://charliedev.com/)*

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance9

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~103 days

Total

3

Last Release

2892d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13066099?v=4)[Charlie](/maintainers/charliedev)[@charliedev](https://github.com/charliedev)

---

Top Contributors

[![sbossarte](https://avatars.githubusercontent.com/u/10968087?v=4)](https://github.com/sbossarte "sbossarte (10 commits)")

---

Tags

craft3craftcmscraftcms-pluginfield-typesectioncmsfieldsectionCraftcraftcms

### Embed Badge

![Health badge](/badges/charliedev-section-field/health.svg)

```
[![Health](https://phpackages.com/badges/charliedev-section-field/health.svg)](https://phpackages.com/packages/charliedev-section-field)
```

###  Alternatives

[spicyweb/craft-neo

A Matrix-like field type with block hierarchy

393813.5k10](/packages/spicyweb-craft-neo)[craftcms/feed-me

Import content from XML, RSS, CSV or JSON feeds into entries, categories, Craft Commerce products, and more.

293952.6k33](/packages/craftcms-feed-me)[verbb/formie

The most user-friendly forms plugin for Craft.

102393.6k69](/packages/verbb-formie)[verbb/comments

Add comments to your site.

13753.9k](/packages/verbb-comments)[verbb/vizy

A flexible visual editor field for Craft.

4250.4k](/packages/verbb-vizy)[verbb/hyper

A user-friendly links field for Craft.

24147.8k12](/packages/verbb-hyper)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
