Hi guys,

I'm trying to write some groovy that uses an image thats in the current skin in 
a link. In this case its a delete page image, that links to a delete page URL:

[[image:${xwiki.getSkinFile('icons/silk/page_delete.gif')}>>${doc.getExternalURL('delete')}]]

The issue is that the getSkinFile call returns a relative URL, which ends up 
getting rendered in the final HTML as 

<img alt="/xwiki/resources/icons/silk/page_delete.gif" 
class="wikimodel-freestanding" 
src="/xwiki/bin/download/Storyboard/fcg9aYKeaI6AVIjxpocO/%2Fxwiki%2Fresources%2Ficons%2Fsilk%2Fpage_delete.gif"></img>

Do you have any suggestions for how I can get access to one of the icons for 
use as an image for a URL? 

Thanks,
Nigel


_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to