定制 muckeit/silverstripe-fa 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

muckeit/silverstripe-fa

Composer 安装命令:

composer require muckeit/silverstripe-fa

包简介

SilverStripe-Addon for font-awesome integration.

README 文档

README

SilverStripe-Addon for font-awesome integration.

New field type

This introduces a new SilverStripe field type FAIcon.

Just add a custom field typed FAIcon to your data objects or use one of the data extensions FAIconizedClass or FAIconizedObject.

Configuration

Custom HTML tag (FAIcon.Tag)

To use a custom HTML tag. (default is i as recommended)

Optionally using SS template (FAIcon.UseTemplate)

Per default FAIcon renders itself without template. This is much faster, than using FAIcon.ss. If you're using FAIcons extensively, this can make a noticeably difference.

But if you have a good reason, you are able to switch on template usage by this parameter. The template is named "FAIcon.ss".

Iconized Classes (DataExtension)

Make all the objects of a class showing up with the same icon.

ClassName:
  FAIcon: home
  extensions:
    - FAIconizedClass

In your templates just use $FAIcon.

Iconized Objects (DataExtension)

Make the objects of a class showing up with a individual icon, editable within the CMS.

ClassName:
  extensions:
    - FAIconizedObject

In your templates just use $FAIcon.

Todo

This is just the very first version of this addon. There are some todos on the roadmap:

  • Special DataExtension for Iconizable Files (using fa's file-type-icons).
  • Optional spinning.
  • I18N icon designations.
  • Optionally require custom css/fonts or even CDN.
  • Tagging FAIcons.
  • Enhanced FAIconField with icon display, auto completion, tag search, etc.
  • Make CMS menu fa-iconizable.

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-09-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固