Attention
TYPO3 v9 has reached its end-of-life September 30th, 2021 and is not maintained by the community anymore. Looking for a stable version? Use the version switch on the top left.
You can order Extended Long Term Support (ELTS) here: TYPO3 ELTS.
SVG¶
With this object type you can insert a SVG. You can use XML data directly or reference a file. A flash fallback will be used for browsers which do not have native SVG support, so that it also works in e.g. IE 6/7/8.
Property
src
Data type
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.
[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.