cancel
Showing results for 
Search instead for 
Did you mean: 

accessing repository from share forms

leftright
Champ on-the-rise
Champ on-the-rise
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?
4 REPLIES 4

mitpatoliya
Star Collaborator
Star Collaborator
You can do that easily in alfresco share interface. It also support drag and Drop which makes it much more convenient.

I wasn't talking about moving the documentvia interface, I need to this programatically in packageitems.ftl

zladuric
Champ on-the-rise
Champ on-the-rise
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?

scouil
Star Contributor
Star Contributor
Hi,

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?