PHPackages                             bluestormdesign/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. bluestormdesign/section-field

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

bluestormdesign/section-field
=============================

Field type that allows the selection of Craft sections.

5.0.1(2y ago)14.4k—5.6%1MITPHP

Since Oct 13Pushed 2y agoCompare

[ Source](https://github.com/bluestormdesign/craft4-section-field)[ Packagist](https://packagist.org/packages/bluestormdesign/section-field)[ RSS](/packages/bluestormdesign-section-field/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Section Field for Craft 5
=========================

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

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 ^5.0

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 bluestormdesign/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

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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 ~280 days

Total

3

Last Release

753d ago

Major Versions

2.0.0 → 5.0.02024-04-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/0100a3f15f2689ec186f8c95de412145bdc6369a40e7ec09fe456a9dae70bba7?d=identicon)[DenyEs](/maintainers/DenyEs)

---

Top Contributors

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

---

Tags

cmsfieldsectionCraftcraftcms

### Embed Badge

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

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

###  Alternatives

[verbb/navigation

Create navigation menus for your site.

90683.7k17](/packages/verbb-navigation)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[supercool/tablemaker

Create customizable and user-defined table fields.

40141.7k](/packages/supercool-tablemaker)[verbb/vizy

A flexible visual editor field for Craft.

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

A user-friendly links field for Craft.

24130.9k9](/packages/verbb-hyper)

PHPackages © 2026

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