PHPackages                             art-and-flywork/kirby.plugin.fieldset - 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. [Templating &amp; Views](/categories/templating)
4. /
5. art-and-flywork/kirby.plugin.fieldset

ActiveKirby-plugin[Templating &amp; Views](/categories/templating)

art-and-flywork/kirby.plugin.fieldset
=====================================

Panel field which loads a fieldset and stores the values in a single field as yaml

0.0.1(5y ago)03[2 issues](https://github.com/art-and-flywork/kirby.field.fieldset/issues)MITJavaScript

Since Sep 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/art-and-flywork/kirby.field.fieldset)[ Packagist](https://packagist.org/packages/art-and-flywork/kirby.plugin.fieldset)[ RSS](/packages/art-and-flywork-kirbypluginfieldset/feed)WikiDiscussions master Synced today

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

Fieldset
========

[](#fieldset)

Panel field which loads a fieldset and stores the values in a single field as yaml.

This works like an extend with the difference that all all values from the fieldset fields are store in a single field. This way you van reuse the fieldset and bind it to a snippet: `snippet('mySnippet', $page->the_fieldset()->yaml())`

Usage
-----

[](#usage)

Create a blueprint with a fieldset:

site/blueprints/fieldsets/somefields.yml

```
type: group
fields:
  title:
    type: text
    label: A nice title
  text:
    type: textarea
    label: Type your text here

```

*the `type: group` is not mandatory for this plugin to work, but it will make it work as a standard kirby field extend too when needed.*

In your page yml add the fieldset field and point it to the fieldset blueprint:

site/blueprints/pages/default.yml

```
fields:
  myfields:
    type: fieldset
    blueprint: fieldsets/somefields
    label: Show me my fields

```

In the panel the fields from somefields.yml are loaded in the fieldset field:

[![alt text](./assets/preview-fields.jpg "Screenshot of the title & textarea field in the panel")](./assets/preview-fields.jpg)

The data is stored as yml in the txt file:

```
----

Myfields:

title: This is my title
text: This is my text

```

Using the values in templates
-----------------------------

[](#using-the-values-in-templates)

There are 2 ways to easily access the values stored in the fieldset field. There is a supplied chainable method or it's yaml can be decoded with the native yaml method or even passed

### 1. Using the supplied fieldmethod

[](#1-using-the-supplied-fieldmethod)

The plugin introduces a field method to make the values accessible as regular chainable kirby fields:

```

```

### 2. Yaml decode by hand

[](#2-yaml-decode-by-hand)

In the template the data is accessible as array by yaml decoding it:

default.php

```

   –

```

Once decoded the values can be directly passed to a snippet:

```

```

site/snippets/mySnippet.php

```

```

License
-------

[](#license)

\[MIT

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2063d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e3e6d4c68d1b1eaddf9aa4a67d98cf8b7b8dee5c7901ef166111a0fd21d5014?d=identicon)[Art&amp;Flywork](/maintainers/Art&Flywork)

---

Top Contributors

[![mcbrwr](https://avatars.githubusercontent.com/u/1662038?v=4)](https://github.com/mcbrwr "mcbrwr (2 commits)")

### Embed Badge

![Health badge](/badges/art-and-flywork-kirbypluginfieldset/health.svg)

```
[![Health](https://phpackages.com/badges/art-and-flywork-kirbypluginfieldset/health.svg)](https://phpackages.com/packages/art-and-flywork-kirbypluginfieldset)
```

###  Alternatives

[fabianmichael/kirby-template-attributes

Better HTML attribute handling for your snippets and templates.

236.8k1](/packages/fabianmichael-kirby-template-attributes)[getkirby/layouts

Kirby Layouts

428.4k](/packages/getkirby-layouts)[leitsch/kirby-blade

Enable Laravel Blade Template Engine for Kirby 4 and Kirby 5

219.2k](/packages/leitsch-kirby-blade)[beebmx/kirby-blade

Blade template for Kirby

151.8k2](/packages/beebmx-kirby-blade)

PHPackages © 2026

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