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!
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.
-
Open your terminal and go to your Craft project:
cd /path/to/project -
Then tell Composer to load the plugin:
composer require homm/hommicons -
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
- Go to Settings > Fields and choose the desired field.
- Within the Field Type choose HOMM Icons
- Upload your SVG icons in your
<VOLUME>/iconsfolder
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
其他信息
- 授权协议: MIT
- 更新时间: 2021-07-29