Skip to content

rkingon/Icons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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.1.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.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