Attention

TYPO3 v10 has reached end-of-life as of April 30th 2023 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.

Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v10 here: TYPO3 ELTS.

SVG

With this object type you can insert a SVG. You can use XML data directly or reference a file.

Property

width

Data type

integer /stdWrap

Description

Width of the SVG.

Default

600

Property

height

Data type

integer /stdWrap

Description

Height of the SVG.

Default

400

Property

src

Data type

file resource /stdWrap

Description

SVG file resource, can also be referenced via EXT: prefix to point to files of extensions.

Example:

src = fileadmin/svg/tiger.svg

Property

renderMode

Data type

string /stdWrap

Description

Setting renderMode to inline will render an inline version of the SVG.

Property

stdWrap

Data type

->stdWrap

[tsref:(cObject).SVG]

Example:

10 = SVG
10 {
  width = 600
  height = 600
  src = EXT:my_ext/Resources/Public/Images/example.svg
}

This example will output the svg with the defined dimensions.