I want to add some images in my velocity templates.
Add first I add the image in the atlassian-plugin.xml file:
<web-resource key="XUserProfilePlugin-resources" name="XUserProfilePlugin Web Resources"> <dependency>com.atlassian.auiplugin:ajs</dependency> <!-- IMAGES --> <resource type="download" name="test.jpg" location="/images/test."/> <context>XUserProfilePlugin</context> </web-resource>
Now I want to now, how i must add this image in the velocity template?
If you don't want to mess up with ugly urls and versions, I would suggest adding a css-file to your web resource and make a div in your velocity and embedd the image via a backgroundimage
use base64-encoding to embed the image directly to your template.
you can use the url to the image
But if you change the plugin key or the module, you always need to rember to change the path to the image...
Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...
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!
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