2017 © Pedro Peláez
 

silverstripe-module silverstripe-fontawesome

Adds a new iconpicker fieldtype.

image

hailwood/silverstripe-fontawesome

Adds a new iconpicker fieldtype.

  • Tuesday, January 10, 2017
  • by hailwood
  • Repository
  • 1 Watchers
  • 2 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Silverstripe Font Awesome Icon Picker

A Silverstripe Font Awesome Icon Picker:

Screenshot, (*1)

  • Always up to date: We read the yaml from the font awesome repository. Just specify your version and you're read to go.
  • Optional on the frontend: We know on the frontend you might like to bundle your own font awesome icons, so you choose if you want us to load them from the CDN.

Options

```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; } }
SS Template (if you have other classes to add)

```html , (*3)

Page Icon:

##### SS Template (if you don't want to customize it) ```html
Page Icon: {$PageIcon}

The Versions

10/01 2017

dev-master

9999999-dev

Adds a new iconpicker fieldtype.

  Sources   Download

GNU

The Requires

 

by Matthew Hailwood

silverstripe icons

09/01 2017

1.0.0

1.0.0.0

Adds a new iconpicker fieldtype.

  Sources   Download

GNU

The Requires

 

by Matthew Hailwood

silverstripe icons