Hi Gerritjan, > On 8 Feb 2017, at 13:16, Gerritjan Koekkoek <gerrit...@cdlsworld.org> wrote: > > Hi, > > > I have a attached image on a page. > > > My aim is to use the image as a background image, > > > So the resulting HTML should be > > > <div style="background-image: url(http://i54.tinypic.com/4zuxif.jpg)"></div> > > > So in the HTML-macro I have a $doc.getAttachmentURL('xxx.png') > > But executing it it looks like the wiki-engine is also transforming the > "background-image:" as a wiki image, so I get resource not found errors? > > > Any suggestion how to wrap?
The best practice is to use a SSX: http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial Note: Re the HTML macro please paste our exact content. The HTML macro will clean the HTML by default to make sure it generates valid XHTML. To prevent this cleanup , use clean=“false”. See the doc for the HTML macro for more details. Thanks -Vincent > Gerritjan Koekkoek > Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS > Visit our website<http://www.cdlsworld.org> > Facebook<https://www.facebook.com/gerritjan.koekkoek> > email<gerrit...@cdlsworld.org> > > >