cancel
Showing results for 
Search instead for 
Did you mean: 

How to link document library to my public web site?

lehaihua444
Champ in-the-making
Champ in-the-making
Hi all,

   I just watched a video called "Making Web Content Management Easy with Alfresco Share 3.2" from the blue fish development group.

   They have a public traditional website that everyone can see, and when they add a new document under document library inside Alfresco Share, they can see the document immediately in their traditional

website. They have several folders under document library in Alfresco Share. For example, they have a folder called "new release" under document library. So when they upload a new document to that folder,

their website ("webiste URL"/new release/) is updated with this new document appeared there as well. They are able to integrate their website with alfresco share, (once log in to their traditional website,

they can add articles; Or they can add an article inside alfresco share, and their traditional website will appear that article as well).

   That is exactly what i want to do with alfresco share. Can anyone give me a hint how I can achieve that?

    Maybe my description is kind of vague, but if you look at the video from 40:20 to 42:12, you will know what I mean. The video can be watched from this URL:

http://blogs.alfresco.com/wp/webcasts/2010/02/making-web-content-management-easy-with-alfresco-share...

After enter this URL, click "Take a Look".

I really want to know how to achieve this interaction between traditional website and alfresco share. Please give me any help you can.

Thanks in advance.

P.S. To be more precise, my question is how to use Alfresco Share as a WCM platform for traditional web site?
3 REPLIES 3

zaizi
Champ in-the-making
Champ in-the-making
Web scripts. http://wiki.alfresco.com/wiki/Web_Scripts.

Check out the default webscript available in Alfresco http://localhost:8080/alfresco/service/index and Share http://localhost:8080/share/service/index.

1. Create a webscript to return list of documents from a specific space / folder as either HTML or XML. Include this html snippet in your traditional website or parse the XML.

2. Do something similar for your articles.

If you look at the existing web scripts, you'll find there are web scripts that already do this. Like the ones in the samples folder: http://localhost:8080/alfresco/service/index/package/org/alfresco/sample

lehaihua444
Champ in-the-making
Champ in-the-making
Thanks for the reply.

I have spent a lot of time on it since I got your reply. I found the script that can return the contents in a directory, which is called "Folder Listing Sample". However, I don't understand how can I return these values as a html or xml file? I mean how can I include these values (the contents + the links) into my traditional html files?

Thanks in advance

stevegreenbaum
Champ in-the-making
Champ in-the-making
One approach is to use an ajax call to your webscript which can return json or xml.