dev-master
9999999-devAdds a new iconpicker fieldtype.
GNU
The Requires
by Matthew Hailwood
silverstripe icons
1.0.0
1.0.0.0Adds a new iconpicker fieldtype.
GNU
The Requires
by Matthew Hailwood
silverstripe icons
Adds a new iconpicker fieldtype.
, (*1)
```yml FontAwesomeIconField: version: 4.6.3 autoload_css: true, (*2)
#### Usage ##### Dataobject/Page ```php class PageWithIcon extends Page { protected static $db = [ 'PageIcon' => 'FontAwesomeIcon', ]; public function getCMSFields(){ $fields = parent::getCMSFields(); $fields->addFieldToTab('Root.Main', FontAwesomeIconField::create('PageIcon', 'Icon')); return $fields; } }
```html , (*3)
##### SS Template (if you don't want to customize it) ```htmlPage Icon: {$PageIcon}
Adds a new iconpicker fieldtype.
GNU
silverstripe icons
Adds a new iconpicker fieldtype.
GNU
silverstripe icons