Skip to content

Latest commit

 

History

History
72 lines (40 loc) · 1.28 KB

README.md

File metadata and controls

72 lines (40 loc) · 1.28 KB

Icons

Icon Fieldtype for Craft CMS

Simple fieldtype which allows you to select font icons ready to use within your templates.

Currently supports:

  • Font Awesome (4.4.0)

Installation

To install Icons, follow these steps:

  1. Upload the fruiticons/ folder to your craft/plugins/ folder.
  2. Go to Settings > Plugins from your Craft control panel and install the Icons plugin.
  3. Create a new icons fields and get it added to one of your field layouts!

Usage

Get the icon object, check it and use:

{% set icon = entry.yourIconFieldHandle %}
{% if icon %}
  {{ icon.icon }}
{% endif %}

Output the full icon tag:

{{ icon.icon }} = <i class="fa fa-home"></i>

Just output the icon class:

{{ icon.class }} = fa-home

Requirements

Craft CMS Version 2.1+

Roadmap

  • Add Support for Glyphicons, IcoMoo, Ionicons & Octicons
  • Add support for custom icon fonts - JSON
  • Select from multiple font familys from one field.
  • Auto include dependencies for front end use.
  • Imporved config options

Changelog

0.9.4

  • Updated to Font Awesome 4.4.0

0.9.3

  • Added support for Matrix. Thanks to rkingon

0.9.2

  • New Setting - Defualt Icon

0.9.1

  • Fixed Craft default validation (Required now works)
  • Field returns null if unset

0.9

  • Initial beta release