Attention
TYPO3 v8 has reached its end-of-life March 31st, 2020 and is not maintained by the community anymore. Looking for a stable version? Use the version switch on the top left.
There is no further ELTS support. It is recommended that you upgrade your project and use a supported version of TYPO3.
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.
Example:
src = fileadmin/svg/tiger.svg
Property
value
Data type
XML /stdWrap
Description
Raw XML data for the SVG.
Will be ignored, if "src" is defined.
[tsref:(cObject).SVG]
Example:¶
10 = SVG
10 {
width = 600
height = 600
value (
<rect x="100" y="100" width="500" height="200" fill="white" stroke="black"/>
<line x1="0" y1="200" x2="700" y2="200" stroke="red" stroke-width="20px"/>
<polygon points="185 0 125 25 185 100" transform="rotate(135 125 25)" />
<circle cx="190" cy="150" r="40" stroke="black" stroke-width="2" fill="yellow"/>
)
noscript.cObject = TEXT
noscript.cObject.value = No SVG rendering possible, please use a browser.
}
This example will show some geometric forms.