Search by

tollwerk / tw-icons

kftw

Provide Icon-ViewHelper for including SVG icons in Fluid Templates

Package info

github.com/tollwerk/TYPO3-ext-tw_icons

Homepage

Documentation

Type:typo3-cms-extension

pkg:composer/tollwerk/tw-icons

Statistics

Installs: 632

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v3.0.3 2026-09-25 11:46 UTC

This package is auto-updated.

Last update: 2026-09-25 11:46:36 UTC


README

Provides a ViewHelper to render SVG-Icons from a configurable source folder.

Installation

  1. Install the extension with composer.

    composer require tollwerk/tw-icons
    
  2. Add the site set "TwIcons" to your site configuration, save it and edit the site settings

  3. Change "Icon Root Paths" [twIcons.iconRootPaths] to the public folder(s) 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(s) defined by twIcons.iconRootPaths, without the file type suffix. "Web" will be resolved to "Web.svg" or "web.svg".