Hey all,
So I'm trying to add a local image, in src/main/resources/images/ to my vm file. In my atlassian-plugin.xml, I've added it as a resource.
<web-resource key="logo" name="Logo">
<resource type="download" name="portal_logo.png" location="images/portal_logo.png" />
</web-resource>
In my vm file, Ive given the following:
$webResourceManager.requireResource("com.companyName.servicedesk.myPlugin:logo")
...
...
...
<img src="images/portal_logo.png" alt="Logo>
Unfortunately the image does not up with everything else. What do I need to do to fix this? Thanks in advance.
<img> tag src attribute value should be as follows,
$req.contextPath/download/resources/<package-name>.<plugin-name>:<resource-key><image-url>
Example -
<img src="$req.contextPath/download/resources/com.companyName.servicedesk.myPlugin:logo/images/portal_logo.png" alt="Logo">
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.