lukasbableck/contao-svg-icon-picker-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱: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
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固