How to add an screenshot/thumbnail for a gadget (as Avatar)?

xu zhijian December 29, 2011

Hi

I want to add a png as an avatar for a gadget . And I add

screenshot='#staticResourceUrl("myKey:myresource","1.png")' 
thumbnail='#staticResourceUrl("myKey:myresource","1.png")'

to ModulePrefs tag. Meanwhile ,

<resource type="download" name="1.png" location="images/1.png">
		   <param name="content-type" value="image/png"/>
</resource>

is also added to atlassian-plugin.xml . But the png didn't show as an avatar while i add the gadget .Does anybody know why ? Or if you know how to add an avatar for a gadget, pls tell me . Thanks a lot .

1 answer

0 votes
xu zhijian January 4, 2012

The key of the gadget cann't include "_" character ? I rename the key by removing "_" and retry it , It works now ..Wired .

Suggest an answer

Log in or Sign up to answer