13 May
2005
13 May
'05
3:54 p.m.
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")" />
-- Xavier MOGHRABI - Consortium ObjectWeb Email: xavier.moghrabi at objectweb.org Phone: +33 4 76 61 52 35 - Skype ID: xavier.moghrabi.bureau