SVG

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

Properties

width

width
Data type

integer / stdWrap

Default

600

Width of the SVG.

height

height
Data type

integer / stdWrap

Default

400

Height of the SVG.

src

src
Data type

resource / stdWrap

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

Example:

EXT:site_package/Configuration/TypoScript/setup.typoscript
src = fileadmin/svg/tiger.svg

renderMode

renderMode
Data type

string / stdWrap

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

stdWrap

stdWrap
Data type

->stdWrap

Example

Output the SVG with the defined dimensions:

EXT:site_package/Configuration/TypoScript/setup.typoscript
10 = SVG
10 {
  width = 600
  height = 600
  src = EXT:my_ext/Resources/Public/Images/example.svg
}