How do I reference an image resource from within a theme plugin?

Brett Ryan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 16, 2012

I have included an image resource in my plugin and wish to include this from an overriden main.vmd velocity template. How do I go about adding this to an <img/> src attribute?

When inspecting a CSS resource it has a path something like /s/en_GB/3273/2/1.0-4.2/_/download/resources/groupId:artifactId/style.css

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 17, 2012

Hi Brett!

I actually answered this same question very recently :-) Check out my answer here: https://answers.atlassian.com/questions/48053/referencing-images-from-decorator-or-css-in-theme-plugin/48072

In particular the second part of the answer will be most relevant to you.

Happy theming!

Joe.

Brett Ryan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 9, 2012

Thanks Joseph, exactly what I was after. Sorry for the delay in accepting this answer.

Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 16, 2012

No problem!

TAGS
AUG Leaders

Atlassian Community Events