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

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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Friday in Off-topic

Friday Fun: Riddle me this

Happy Friday, Funmakers! We had a Community Team offsite in Austin this week, and my mind feels primed for thinkin' from all the brainstorming we did!  So, this week's Friday Fun thread w...

137 views 17 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you