tollwerk/tw-icons
最新稳定版本:v1.0.0
Composer 安装命令:
composer require tollwerk/tw-icons
包简介
Provide Icon-ViewHelper for including SVG icons in Fluid Templates
关键字:
README 文档
README
Provides a ViewHelper to render SVG-Icons from a configurable source folder.
Installation
-
Install the extension with composer.
composer require tollwerk/tw-icons -
Include the TypoScript template "Tollwerk SVG-Icons" into your root TypoScript template.
-
Set
plugin.tx_twicons.settings.iconRootPathto the public folder where your SVG-Icons are stored.
Usage
Use the following ViewHelper to render Icons.
<!-- Will use the file "MyIconName.svg" and render that icon. --> <twicons:icon icon="MyIconName" />
ViewHelper arguments
debug bool, optional, default = true
If true and there is no file for the given icon (see argument "icon", below), a HTML comment like <!-- Unknown SVG icon "IconName.svg" --> will be returned instead.
icon string, required
Name of the SVG icon file found inside the folder defined by plugin.tx_twicons.settings.iconRootPath. So "Web" will be resolved to "Web.svg" or "web.svg".
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2026-03-28