lukasbableck/contao-svg-icon-picker-bundle
最新稳定版本:1.0.5
Composer 安装命令:
composer require lukasbableck/contao-svg-icon-picker-bundle
包简介
This bundle adds a svg icon picker widget to Contao.
关键字:
README 文档
README
This bundle adds a svg icon picker widget to Contao.
Configuration
Create a field in your DCA/RSCE/...
'icon' => [ 'inputType' => 'svgIconPicker', 'eval' => [ 'sourceDirectory' => 'files/icons', 'metadataDirectory' => 'files/icons/metadata', 'tl_class' => 'clr' ], 'sql' => 'blob NULL', ],
Put your SVG icons in the specified sourceDirectory.
Icon metadata like search terms and labels can be provided via an icons.json, which has to be placed in the metadataDirectory. Providing metadata is completely optional.
Currently only an icons.json file in the scheme of the FontAwesome icons.json is supported.
Glyphs are not supported yet.
Usage
This extension provides a Twig function to render the SVG icon in your templates.
{{ svg_icon(icon) }}
统计信息
- 总下载量: 30
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2025-08-14