Re: [xwiki-users] Image as background

2017-02-08 Thread Vincent Massol
Hi Gerritjan,

> On 8 Feb 2017, at 13:16, Gerritjan Koekkoek  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
> 
> 
> http://i54.tinypic.com/4zuxif.jpg)">
> 
> 
> 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
> Facebook
> email
> 
> 
> 



[xwiki-users] Image as background

2017-02-08 Thread Gerritjan Koekkoek
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


http://i54.tinypic.com/4zuxif.jpg)">


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?




Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website
Facebook
email