thisisbd/silverstripe-fontawesome-iconpickerfield 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thisisbd/silverstripe-fontawesome-iconpickerfield

最新稳定版本:v0.4

Composer 安装命令:

composer require thisisbd/silverstripe-fontawesome-iconpickerfield

包简介

Font Awesome Icon Picker for SilverStripe 3.1.x based on http://mjolnic.com/fontawesome-iconpicker

README 文档

README

Font Awesome Icon Picker for SilverStripe 3.x based on http://mjolnic.com/fontawesome-iconpicker

<iframe title="SilverStripe Font Awesome Icon Picker Field" width="420" height="315" src="https://www.youtube.com/embed/DwJhmhc9PRw" frameborder="0" allowfullscreen></iframe>

SilverStripe Font Awesome Icon Picker Field

Maintainer Contacts

  • Darren-Lee Joseph <darrenleejoseph (at) gmail (dot) com>

Requirements

  • SilverStripe 3.1

Installation Instructions

Installation can be done either by composer or by manually downloading a release.

Via composer (best practice)

composer require "thisisbd/silverstripe-fontawesome-iconpickerfield:*"

Manually

  1. Download the module from the releases page.
  2. Extract the file (if you are on windows try 7-zip for extracting tar.gz files
  3. Make sure the folder after being extracted is named 'fontawesome-iconpickerfield'
  4. Place this directory in your sites root directory. This is the one with framework and cms in it.
  5. Visit <yoursite.com>/?flush to clear the manifest cache.

Usage Overview

private static $db = array(
    'FontAwesomeIcon' => 'Varchar'
);

In getCMSFields do this or something similar:

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

    $fields->addFieldToTab(
	    'Root.Main',
	    FontAwesomeIconPickerField::create('FontAwesomeIcon', 'Font Awesome Icon')
    );

    return $fields;
}

Frontend implementation

Suggested is to always use the latest version of FontAwesome, as the module tries to get all the available icons from the FontAwesome YML file on Github.

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css"/>

Known Issues

No known issues.

统计信息

  • 总下载量: 3.27k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 14
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 1

GitHub 信息

  • Stars: 13
  • Watchers: 5
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-03-03