I have a Stash 2.x plugin I am upgrading to Stash 3.x. My plugin is mainly exposed through a web-item on the 'stash.repository.nav' section.
Stash 3 introuced the sidebar, where each web-item has an icon.
I've seen several suggestions for getting an icon to work for my plugin, but none of them work completely.
The closest I have got is by adding this to my <web-item> definition:
<param name="stashIconClass">myplugin-sidebar-icon</param>
and this to my plugin's CSS:
.myplugin-sidebar-icon { background-image: url('images/marketing/myplugin-logo-16.png'); }
This works, but only when I am in the plugin's tab. When I'm on any other tab for the repository, the logo doesn't show up.
So... what is the canonical way that a web-item plugin should be adding a logo to the sidebar?
Community moderators have prevented the ability to post new answers.
You need to add the correct context to the web-resource which contains your css.
E.g.
<context>jira.general</context>
Well, a stash context ofcourse. I assume, one from here: https://developer.atlassian.com/stash/docs/latest/reference/web-resource-contexts.html
Hi Graham,
As an alternative to your plugin, have you seen the one below?
Best,
Thiago
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.