Alfresco-HTML5-Client icon indicating copy to clipboard operation
Alfresco-HTML5-Client copied to clipboard

Enhancement: Server at another location

Open nicolas-raoul opened this issue 11 years ago • 3 comments

I want to host Alfresco-HTML5-Client on a separate machine, not on the Alfresco server itself.

Is there a way to achieve this?

The best would be to be able to specify the CMIS URL somewhere.

nicolas-raoul avatar Jul 16 '14 08:07 nicolas-raoul

Here are lines that presumably need to be modified:

js/cmisbrowser.js:  return "/alfresco/service/api/node/" + objectId.replace(':/', '').split(";")[0] +
js/cmisbrowser.js:      url:'/alfresco/service/api/login',
templates/document.html:                <img data-bind="attr: {src: '/alfresco/service/api/node/'

/alfresco/service/api is not CMIS, though? I haven't found where the CMIS URL is coded yet...

nicolas-raoul avatar Jul 16 '14 08:07 nicolas-raoul

the cmis url is at line 354 of js/cmisbrowser.js

it should not be hard to extract all these urls and put them in js/config.js, but even changing these lines, you will face cross domain issues

agea avatar Jul 18 '14 08:07 agea

I wrote a similar tool at https://github.com/nicolas-raoul/WebCMIS and it has no problem with cross-domain, so I guess it would work as well for Alfresco-HTML5-Client :-)

nicolas-raoul avatar Jul 18 '14 09:07 nicolas-raoul