14 May
2009
14 May
'09
11:27 p.m.
Vladimir Konrad wrote:
Hello,
I did search what I possibly could but could not find a way to attach an SVG file to a document and have this image rendered in it.
Is this doable?
I found that there is SVG plugin (enabled) in the xwiki.cfg but could not find any documentation on how to use it.
(this is on XWiki 1.9-m2)
Check http://code.xwiki.org/xwiki/bin/view/Macros/SVGMacro (this works with documents in the xwiki/1.0 syntax). If you want to do something similar in 2.0 syntax, you should use: {{velocity}} {{html}}<img src="${xwiki.svg.getSVGImageURL(${doc.getAttachment('logo.svg').getContentAsString()}, 100, 100)}" width="100" height="100" alt="The logo" />{{/html}} {{/velocity}} -- Sergiu Dumitriu http://purl.org/net/sergiu/