Hello! I need to access repostiroy from javascript, inside a modified packageitems.ftl. I need to do that in order to copy a document from one space to another. What would be the easiest way to do that?
You cannot do it in the template, you need to do this in a javascript controller. And you can't do it from share, you have to call remote webscript to do that.
Do you know how to make remote calls from a js controller?
So, yes. If you want to access the repository, you'll have to make an ajax call, most likely using the share proxy API. And then on the server side, either you find an existing webscript that already does what you want or you create your own. What part of this process do you need advice on?