Hello, I'm creating some new menu buttons in confluence, and inside my local version of confluence, the one created using 'atlas-run', the icons appear just fine using the following in my atlassian-plugin.xml:
<web-item key="archive" name="archive" section="system.content.button" weight="40"> <context-provider class="com.dneg.menu.menuoptions.MenuOptionsHelper" /> <label>Archive Status: $archive </label> <link>/plugins/menuoptions/menuoptions.action?json={id:$page.id,flag:archive,status:$archive}</link> <icon height="16" width="16"> <link>/images/icons/classic/16/86.png</link> </icon> <condition class="com.atlassian.confluence.plugin.descriptor.web.conditions.NotPersonalSpaceCondition"/> </web-item>
In the <link> parameter, the '/images/...' refers to the 'webapps/' folder within the local confluence installation. However, when i install the same plugin on the remote server, this link no longer finds the icon I need.
I looked into the file directory and found that the /webapps/ folder in the remote server is empty, which led me to think that maybe it isn't used.
My question is, where would I have to place my icon in order for the '/images/...' icon link to be found?
Another possible solution would be if anyone could tell me how to add the icon to my plugin, such as in the resources folder, how would I then set up my link in the XML to point at the resources folder?
Thank in advance
Matt
Community moderators have prevented the ability to post new answers.
Never mind, the method above does work, there were some issues with our tomcat servers earlier which is why it wasn't working then. I'd post what the issues were to potentially help someone else but I'm afraid I have no idea
Matt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.