Fieldsets
Fieldsets are used to store and organize reusable fields.
Overview#
Fieldsets are almost functionally equivalent to Blueprints, except that they exist for you to be able to create reusable fields.
While Blueprints attach directly to content like collections or forms, Fieldsets are not directly attached to anything.
Fieldsets contain fields, just like Blueprints, but the benefit of using a Fieldset is that you can import their fields (or the whole thing) into other Blueprints. You can even import fieldsets into certain fieldtypes, like Grid, Replicator, or Bard.
Fieldsets can be a simple flat list of fields, or organized into sections when you want to group related fields together for reuse across blueprints.
Creating fieldsets#
There are 2 ways to create fieldsets:
- In the Fieldsets area of the control panel.
- Creating a YAML file in the appropriate place within
resources/fieldsets/. More on that in a moment.
Once created, you can begin to define its fields.
Directory structure#
Whether you manually create your fieldsets's YAML file, or use the control panel, they will all end up as YAML files in the resources/fieldsets directory.
resources/