cancel
Showing results for 
Search instead for 
Did you mean: 

Getting document URL and from it...the documents

pavan
Champ in-the-making
Champ in-the-making
Hello All,


    I am really new to Alfresco. We need to integrate a PLM product with Alfresco. My requirement drives me to get the file associated with the URL/hyperlink during drag/drop onto our PLM.

    I have few questions in this regard:

    1. If I have few files in a repository, and if I hover over them, I could see the target link [ HREF of anchor tag ] as

   http://XXXXXXX/share-repo/proxy/alfresco//api/node/content/workspace/SpacesStore/7346eeef-4a75-47e9-...

     Now, if I click one particualr document, I could see something like this in the URL box of the browser.

   http://XXXXXXXX/share-repo/proxy/alfresco//api/node/content/workspace/SpacesStore/7346eeef-4a75-47e9...

       So my question is this. What needs to be done to get the proper URL of a file during hover/drag. Javascript drag event?

    2. If I do get a URL of the document appropriately, how do I get the actual file?. Are there any specific APIs provided by Alfresco?.

    3. Finally, in the event that I do not get the URL correctly, is there any way to get a unique id of the file that I am dragging?.

    Requesting you to share any information on this stuff.

Thanks,
Pavan.
1 REPLY 1

harvey
Champ in-the-making
Champ in-the-making
url: "downloadUrl" (propertie a node, node is a file, folder…)
id: "nodeRef" (propertie a node, node is a file, folder…)

<a href="http://wiki.alfresco.com/wiki/JavaScript_API">http://wiki.alfresco.com/wiki/JavaScript_API</a>
you can find some "examples" in <a href="http://code.google.com/p/share-extras/"> http://code.google.com/p/share-extras/ </a>

(sorry for my bad english)