Download the PHP package goldfinch/fielder without Composer
On this page you can find all versions of the php package goldfinch/fielder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download goldfinch/fielder
More information about goldfinch/fielder
Files in goldfinch/fielder
Package fielder
Short Description Field is fields manager and orginizer for Silverstripe
License MIT
Informations about the package fielder
🦅 Fielder, fields manager for Silverstripe
Fielder 🚜 is fields organizer that helps to simplify fields declaration and makes it easy to manage all in one place, keeping it clean with less code.
Install
Usage
Fielder within the cms fields in DataObject
Fielder within the settings fields in SiteTree
Fielder has its own validator method to ease validation process (see validate method). Having said that the default SS validation method can still be presented and will be called alongside.
Fielder in extension
List of available methods
declare fields in tabs
declare fields removing previously declared fields
insert after
insert before
reorder fields
reorder tabs
add fields to tab
get data field, same as
dataFieldByName
get field, same as
scaffoldFormField
required field
remove specific fields
remove all fields
remove all fields within the class (ignores fields that were added through inherited or extended classes)
remove fields in tab
add description field
disable field
readonly field
add custom error
validate fields
Basic closure validation per each field
Laravel approach (recommended)
This package comes with Laravel validation components that are ready to use. For more info on what rules are available and how to use them, please refer to this list
You can also create a custom rule that will handle your specific validation logic. Use Taz🌪️ to create a new rule.
eg:
and simply implement it in your validation rules:
display logic methods
Basic coverage, not all functions are yet available.
examples:
List of available fields
✳️ General fields
checkbox
Checkbox field
Class: SilverStripe\Forms\CheckboxField
Suitable DB Type: Boolean
dropdown
Dropdown field
Class: SilverStripe\Forms\DropdownField
Suitable DB Type: *
readonly
Readonly field
Class: SilverStripe\Forms\ReadonlyField
Suitable DB Type: *
text
Textarea field
Class: SilverStripe\Forms\TextareaField
Suitable DB Type: *
string
Text field
Class: SilverStripe\Forms\TextField
Suitable DB Type: Varchar
password
Password field
Class: SilverStripe\Forms\PasswordField
Suitable DB Type: Varchar
action
Action field
Class: SilverStripe\Forms\FormAction
passwordConfirmed
Password confirm field
Class: SilverStripe\Forms\ConfirmedPasswordField
Suitable DB Type: *
currency
Currency field
Class: SilverStripe\Forms\CurrencyField
Suitable DB Type: Currency
date
Date field
Class: SilverStripe\Forms\DateField
Suitable DB Type: Date
datetime
Datetime field
Class: SilverStripe\Forms\DatetimeField
Suitable DB Type: Datetime
Email field
Class: SilverStripe\Forms\EmailField
Suitable DB Type: Varchar
groupedDropdown
Grouped dropdown field
Class: SilverStripe\Forms\GroupedDropdownField
Suitable DB Type: *
html
HTML Editor field
Class: SilverStripe\Forms\HTMLEditor\HTMLEditorField
Suitable DB Type: HTMLText
money
Money field
Class: SilverStripe\Forms\MoneyField
Suitable DB Type: Money
numeric
Numeric field
Class: SilverStripe\Forms\NumericField
Suitable DB Type: Decimal
Float
Int
radio
Radio field
Class: SilverStripe\Forms\OptionsetField
Suitable DB Type: *
selectionGroup
Selection group field
Class: SilverStripe\Forms\SelectionGroup
Suitable DB Type: *
time
Time field
Class: SilverStripe\Forms\TimeField
Suitable DB Type: Time
✳️ Structure fields
composite
Composite field
Class: SilverStripe\Forms\CompositeField
group
Group field
Class: SilverStripe\Forms\FieldGroup
list
List field. FYI: $fields is FieldList already. Using this field we store new FieldList in FieldList
Class: SilverStripe\Forms\FieldList
tab
Tab field
Class: SilverStripe\Forms\Tab
tabSet
Tab set field
Class: SilverStripe\Forms\TabSet
toggleComposite
Toggle composite field
Class: SilverStripe\Forms\ToggleCompositeField
✳️ File fields
upload
Upload field
Class: SilverStripe\AssetAdmin\Forms\UploadField
Suitable relationship: has_one
has_many
many_many
belongs_many_many
file
File field
Class: SilverStripe\Forms\FileField
Suitable relationship: has_one
has_many
many_many
belongs_many_many
✳️ Relationship fields
checkboxSet
Checkbox set field
Class: SilverStripe\Forms\CheckboxSetField
Suitable relationship: has_many
many_many
belongs_many_many
dropdownTree
Dropdown tree field (!SiteTree)
Class: SilverStripe\Forms\TreeDropdownField
Suitable relationship: has_one
treeMultiSelect
Tree Multiselect field, only for
SilverStripe\Security\Group
Class: SilverStripe\Forms\TreeMultiselectField
Suitable relationship: has_many
many_many
grid
Grid field
Class: SilverStripe\Forms\GridField\GridField
Goldfinch\Fielder\Grid
Suitable relationship: has_many
many_many
belongs_many_many
- might require additional packages
listbox
Listbox field
Class: SilverStripe\Forms\ListboxField
Suitable relationship: has_many
many_many
belongs_many_many
✳️ Utility fields
header
Header field
Class: use SilverStripe\Forms\HeaderField;
hidden
Hidden field
Class: SilverStripe\Forms\HiddenField
Suitable DB Type: *
label
Label field
Class: SilverStripe\Forms\LabelField
literal
Literal field
Class: SilverStripe\Forms\LiteralField
nullable
Nullable field
Class: SilverStripe\Forms\NullableField
Suitable DB Type: *
decimal
Decimal (DB) field
Class: SilverStripe\ORM\FieldType\DBDecimal
Suitable DB Type: Decimal
double
Double (DB) field
Class: SilverStripe\ORM\FieldType\DBDouble
Suitable DB Type: Double
float
Float (DB) field
Class: SilverStripe\ORM\FieldType\DBFloat
Suitable DB Type: Float
year
Year (DB) field
Class: SilverStripe\ORM\FieldType\DBYear
Suitable DB Type: Year
percentage
Percentage (DB) field
Class: SilverStripe\ORM\FieldType\DBPercentage
Suitable DB Type: Percentage | Percentage(6)
integer
Integer (DB) field
Class: SilverStripe\ORM\FieldType\DBInt
Suitable DB Type: Int
big integer
Big Integer (DB) field
Class: SilverStripe\ORM\FieldType\DBBigInt
Suitable DB Type: BigInt
locale
Locale (DB) field
Class: SilverStripe\ORM\FieldType\DBLocale
Suitable DB Type: Locale
enum
Enum (DB) field
Class: SilverStripe\ORM\FieldType\DBEnum
Suitable DB Type: Enum("Apple,Orange,Kiwi", "Kiwi")
siteTreeURLSegment
SiteTreeURLSegment field
Class: SilverStripe\CMS\Forms\SiteTreeURLSegmentField
Suitable DB Type: *
htmlReadonly
HTMLReadonly field
Class: SilverStripe\Forms\HTMLReadonlyField
Suitable DB Type: *
✳️ External fields
shortcode
Shortcode field (string)
Suitable DB Type: SCVarchar
objectLink
HasOneButton field
Class: SilverShop\HasOneField\HasOneButtonField
Suitable relationship: has_one
belongs_to
object
HasOneLink field
Class: gorriecoe\LinkField\Forms\HasOneLinkField
Suitable relationship: has_one
belongs_to
multiSelect
MultiSelect field
Class: Kinglozzer\MultiSelectField\Forms\MultiSelectField
Suitable relationship: many_many
belongs_many_many
media
EditableUpload field
Class: Goldfinch\ImageEditor\Forms\EditableUploadField
Suitable relationship: has_one
has_many
many_many
belongs_many_many
mediaSortable
EditableSortableUpload field
Class: Goldfinch\ImageEditor\Forms\EditableSortableUploadField
Suitable relationship: has_many
many_many
belongs_many_many
color
ColorPalette field
Class: Heyday\ColorPalette\Fields\ColorPaletteField
Suitable DB Type: *
colorPicker
Color field
Class: RyanPotter\SilverStripeColorField\Forms\ColorField
Suitable DB Type: *
Additional requirements:
colorGroup
GroupedColorPalette field
Class: Heyday\ColorPalette\Fields\GroupedColorPaletteField
Suitable DB Type: *
json
JSONEditor field
Class: Goldfinch\JSONEditor\Forms\JSONEditorField
Suitable DB Type: JSONText
Goldfinch\JSONEditor\ORM\FieldType\DBJSONText::class
Additional requirements:
1) create schema fiel: (app/_schema/{parent-classname}-{field-mame}.json)
2) example schema file:
3) example field
video
Video field
Class: Goldfinch\VideoField\Forms\VideoField
Suitable DB Type: Video
See: github.com/goldfinch/video-field
place
Place field
Class: Goldfinch\GoogleFields\Forms\PlaceField
Suitable DB Type: Place
Additional requirements:
.env
See: github.com/goldfinch/google-fields
map
Map field
Class: Goldfinch\GoogleFields\Forms\MapField
Suitable DB Type: Map
Additional requirements:
.env
See: github.com/goldfinch/google-fields
link
Checkbox field
Class: SilverStripe\AnyField\Form\AnyField
Suitable relationship: has_one
Relationship type: SilverStripe\LinkField\Models\Link::class
Template: vendor/silverstripe/linkfield/templates/SilverStripe/LinkField/Models/Link.ss
links
ManyAny field
Class: SilverStripe\AnyField\Form\ManyAnyField
Suitable relationship: has_many
many_many
belongs_many_many
Relationship type: SilverStripe\LinkField\Models\Link::class
Additional requirements:
Required $has_one on SilverStripe\LinkField\Models\Link
eg:
linkSS
Link field
Class: SilverStripe\LinkField\Form\LinkField
Suitable relationship: has_many
many_many
belongs_many_many
Relationship type: SilverStripe\LinkField\Models\Link::class
linkRel (extra link field)
Link field
Class: gorriecoe\LinkField\LinkField
Suitable relationship: has_one
Relationship type: gorriecoe\Link\Models\Link::class
code
CodeEditor field
Class: KevinGroeger\CodeEditorField\Forms\CodeEditorField
Suitable DB Type: *
tag
Tag field
Class: SilverStripe\TagField\TagField
Suitable relationship: has_many
many_many
belongs_many_many
points
Point field
Class: LittleGiant\SilverStripeImagePoints\DataObjects\Point
Suitable relationship: has_many
many_many
belongs_many_many
Additional requirements:
1) model
2) yml config
3) example field
wrapper
Wrapper field
Class: UncleCheese\DisplayLogic\Forms\Wrapper
autocomplete
Autocomplete field
Class: TractorCow\AutoComplete\AutoCompleteField
Suitable DB Type: *
stringTag
StringTag field
Class: SilverStripe\TagField\StringTagField
Suitable DB Type: *
imageCoords
ImageCoords field
Class: Goldfinch\ImageEditor\Forms\ImageCoordsField
Suitable relationship: has_one
encrypt
Encrypt field
Class: LeKoala\Encrypt\EncryptHelper
Suitable DB Type:
country
CountryDropdown field
Class: Dynamic\CountryDropdownField\Fields\CountryDropdownField
Suitable DB Type: *
icon
Icon field
Class: Goldfinch\IconField\Forms\IconField
Suitable DB Type: Icon
Goldfinch\IconField\ORM\FieldType\DBIcon::class
Additional requirements:
Set .yml config github.com/goldfinch/icon-field
phone
Phone (DB) field
Class: Innoweb\InternationalPhoneNumberField\ORM\DBPhone
Suitable DB Type: Phone
Template output
mediaSelect
Phone (DB) field
Class: NSWDPC\Forms\ImageSelectionField\ImageSelectionField
Suitable relationship:
Template output
License
The MIT License (MIT)
All versions of fielder with dependencies
silverstripe/framework Version ^5.0
silverstripe/admin Version ^2.0
goldfinch/illuminate Version ^2.0