承接 homm/hommicons 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

homm/hommicons

最新稳定版本:2.0.4

Composer 安装命令:

composer require homm/hommicons

包简介

Craft CMS Icon Picker

README 文档

README

Craft CMS Icon Picker

This plugin reads all images in the "icons" folder of your specified subvolumes. You should only upload SVG's in this folder!

Screenshot

Requirements

This plugin requires Craft CMS 4.x.

For the Craft CMS 3.x plugin version, see 0.x tags.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require homm/hommicons
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for HOMM Icons.

HOMM Icons Overview

This plugin reads all images in the "icons" folder of your specified subvolumes. You should only upload SVG's in this folder!

Configuring HOMM Icons

Go to Settings > HOMM Icons:

Here you can choose the desired assets volume which should be scanned.

Using HOMM Icons

  1. Go to Settings > Fields and choose the desired field.
  2. Within the Field Type choose HOMM Icons
  3. Upload your SVG icons in your <VOLUME>/icons folder

Basic usage in the template (Twig):

{{ svg('@webroot/images/icons/' ~ entry.icon ~ '.svg') }}

HOMM Icons Roadmap

Some things to do, and ideas for potential features:

  • Add option to choose (an optional) subfolder
  • Provide Craft Variable to easily output the icon

Brought to you by HOMM interactive

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-07-29