It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Extending the <resource> element

I have found the following example in the documentation, and it would do exactly what I want, except that the contents at the location are not static. 

<resource type="download" name="icons/" location="templates/extra/autofavourite/icons/"/>

 Ideally, I would like location to be something external to the plugin, like database content or an exploded zip file pulled from download/attachments.

So my question is, can I define my own resource type, and provide an implementation class that can access that location, and how would I go about it.

Alternatively, is there another way to accomplish what I am trying to do, and I just have't stumbled across it yet?

2 answers

Yes, I am aware that this can be used as a "back door" method to sneak malicious code onto a page by making it an attachment. Locking it down will be phase 2.

I decided to go in a totally different direction. I realized that I was completely misunderstanding the concept of resources.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

8,561 views 6 7
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you