承接 lukasbableck/contao-svg-icon-picker-bundle 相关项目开发

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

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

lukasbableck/contao-svg-icon-picker-bundle

最新稳定版本:1.1.0

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) }}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2025-08-14