A simple form field for selecting font-awesome classes in the CMS.

Installs: 2 194

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 2

Forks: 10

Open Issues: 1


v1.1.3 2016-11-12 20:56 UTC

This package is not auto-updated.

Last update: 2020-09-18 20:31:02 UTC


Provides a field to easily pick font-awesome icons


  • Easily pick icons to be used anywhere in the frontend
  • Can filter on icon name



Make sure you're not double loading the css/fonts with a theme.

Ideally composer will be used to install this module. composer require "moe/font-awesome:@stable"

Screen shots

Font awesome icon view

Font awesome icon

Filter view



A basic working example, and the following to any class you want the field on;

    private static $db = array(
        'Icon' => 'Varchar(255)',

    public function getCMSFields()
        $fields = parent::getCMSFields();

        $fields->addFieldsToTab('Root.Main', array(
           FontAwesomeField::create("Icon", "Font Awesome icon")

        return $fields;

Then simple include in the template where you want the icon placed

    <i class="fa $Icon"></i>  

The controller extension should make sure you've got access to the icons so you don't need to double up the CSS file.

Want colours instead of icons?

Got you covered, checkout color-swabs!

Libraries used/modified

  • Font Awesome 4.7