Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

What is the correct value for icon attribute of xhtml-macro?

Антон Корнеев
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 11, 2019

I have atlassian-plugin.xml that looks like

<atlassian-plugin key="${atlassian.plugin.key}" name="${project.name}" plugins-version="2">
<xhtml-macro name="macro-name" class="package.MacroClass" key="macro-key" icon="download/resources/${atlassian.plugin.key}/images/icon.png">
...
</xhtml-macro>
<resource type="download" name="images/" location="images/"/>
</atlassian-plugin>

The icon is placed in ./src/main/resources/images/icon.png

So it looks like it is done according to your guideline. But apparently when browser tries to download the icon http://host:port/s/en_EN/7801/08...35f/_download/resources/project-name/images/icon.png server returns 404.
Also tried values icon="download/resources/images/icon.png" and icon="/images/icon.png" with same result.

What is the correct value for icon attribute?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events