cancel
Showing results for 
Search instead for 
Did you mean: 

URL for View In Browser

chamill
Champ on-the-rise
Champ on-the-rise
Hello,

I have created an outlook addin which searches my Alfresco repository using metadata from a custom aspect. All this i have working.

But what I would like to do is allow the user to click a button to "View in Browser" (as they would in Share) the selected document.

I have the relevant node for the document but I was wondering was is ther a URL/Webscript I can use to produce the same results as the "View in Browser" from the Share application? This being the case the selected document would be checked out and any changes to the document could be saved back to the repository as a new version of the document.

Any help in this matter would be greatly appreciated.

Thanks

Conor M Hamill
1 REPLY 1

romschn
Star Collaborator
Star Collaborator
If you have the nodeid and want to display the content of the node in the browser then you can use the same link generated as generated from alfresco share. If you are invoking the link externally then it will ask for authentication and on successful authentication it will display the content in browser.

http://localhost:8080/share/proxy/alfresco/api/node/content/workspace/SpacesStore/{nodeid}/{contentn...}

For checkout/upload again, i think you need to have user login to alfresco share or would probably need to think of implementing custom webscript which will give option to checkout and upload again.