Fields
Fields are configurable (custom) Filament form fields that can be used in Content, Forms and Settings. We provide a set of fields that can be used out of the box, but you can also create your own fields.
Displaying a field in blade
// resources/page.blade.php
{{ $content->field('name') }}
Most of the fields are based on the Filament fields, but we might miss some configuration options. If you need a specific configuration option, you can create your own field or submit a PR to add the configuration option to the field.
Setup
If you want to have your custom fields available in backstage, register them by adding the fields to config/backstage.php
.
return [
// ...
'fields' => [
]
];
Then this component should be available in the Settings field relation manager:
To see how to create a field, check the Creating a field page.
Relation field
Types -> Add field -> Field type "Select".
Under Field specific select "Relationship"-type in options, add a relation: Resource: Content Column (name in dropdown): Name Add filter: Column: Type_Slug Operator: Equal Value: [slug-of-type] e.g. 'members'.