On 5/13/05, Xavier MOGHRABI <xavier.moghrabi@objectweb.org> wrote:
I have a strange behaviour:

Here is my code in the page:
#(set $imagedoc = $xwiki.getDocument("Main.CarreSciences"))
<img src="$imagedoc.getAttachmentURL("small10.jpg","download")" />

Here what I can read once the page saved:
#(set $imagedoc=com.xpn.xwiki.api.Document@e4d64b)

But if I use the following code, it works:
<img
src="$xwiki.getDocument("Main.CarreSciences ").getAttachmentURL("small10.jpg","download")" />

Le vendredi 13 Mai 2005 15:55, Ludovic Dubost a écrit:
> #(set $imagedoc = $xwiki.getDocument("Toto.MyPage"))
> <img url="$imagedoc.getAttachmentURL(" file.jpg","download")" />


I think the parenthesis is not at the right place.
try this :
#set ($imagedoc = $xwiki.getDocument("Main.CarreSciences"))
<img src="$imagedoc.getAttachmentURL("small10.jpg","download")" />

-Jérémi


--
http://www.sport42.net - http://fr.runnerslifestyle.com
Développeur http://www.xwiki.org
Tel : 06.84.50.33.49
skype: jeremi23