cancel
Showing results for 
Search instead for 
Did you mean: 

content via URL

draxor
Champ in-the-making
Champ in-the-making
Hi,

I've been looking for a way to get a list of the content of a workspace , but by using a url page.

The basic id is that users place documents in a workspace folder and when other people surf to a certain website, they'll get a link to alfresco (using login: guest, guest) so they can read the document.

I've tried the WCM, but problem is that once a document is published there's no userfriendly way to re-edit the thing.

I'm currently trying to implement the java code of alfresco SDK in a servlet, to get the nodeID en build my links from there on so i make urls like: http://SERVERIP:8080/alfresco/download/direct/workspace/SpacesStore/0e39af85-ef38-11db-b0b7-65b3ae91...
But that bird isn't flying well either.

I've read that in the next release (2.1) webscript will be made available, is that a better way to follow to get the result?

or got any better/easier Idees?
4 REPLIES 4

kevinr
Star Contributor
Star Contributor
Templates can be accessed via URL. You can build a template that shows the items within a folder and provides downloadcontent links to them. You can then call the template itself via a URL (templatecontentservlet) and that's everything you need. If Guest is made to access the template, the folder to browse and the content itself then you won't even need to login.
http://wiki.alfresco.com/wiki/Template_Guide
http://wiki.alfresco.com/wiki/URL_Addressability#TemplateContentServlet

Thanks,

Kevin

draxor
Champ in-the-making
Champ in-the-making
nice, its half what i'm looking for, what really i need is to integrate that code into our company website so it can display its content without people having to click another url to see it.

anyhow…

http://IPSERVER:8080/alfresco/template/workspace/SpacesStore/23299ecf-f171-11db-ac6c-9d9a0fdecd00/?g...

when I try this url to login into a space with a template as guest (as you suggested) it allways return the login screen instead of my template.

kevinr
Star Contributor
Star Contributor
The URL is not quite well formed, assuming you have given the Guest user access to the template path, the url should read:

http://IPSERVER:8080/alfresco/template/workspace/SpacesStore/23299ecf-f171-11db-ac6c-9d9a0fdecd00?gu...
Thanks,

Kev

draxor
Champ in-the-making
Champ in-the-making
aight, many thnx it works!!!  😎  :lol: