AnsweredAssumed Answered

Issue with folder listing Web Script in Alfresco.

Question asked by suryabadami on Feb 27, 2012
Latest reply on Feb 27, 2012 by suryabadami
I have created Folder listing Web srcipt using http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2Fws-folderListing-intro.html which works perfectly fine.
I am getting below output when running the html file:

Alfresco Community Edition v4.0.0 (a r30055) : dir
Contents of folder /Company Home

d   Data Dictionary
d   Guest Home
d   User Homes
d   Sites
d   Alfresco Workflow Environment
New Text Document.txt

I am getting below output while running json file(http://localhost:8080/alfresco/service/dir/Company%20Home.json)

{
  "server" : "Alfresco Community Edition v4.0.0 (a r30055)",
  "folder" :
  {
    "path" : "",
    "name" : "Company Home"
  },
  "children" : [
    {
        "isfolder" : true,
        "name" : "Data Dictionary"
    },
    {
        "isfolder" : true,
        "name" : "Guest Home"
    },
    {
        "isfolder" : true,
        "name" : "User Homes"
    },
    {
        "isfolder" : true,
        "name" : "Sites"
    },
    {
        "isfolder" : true,
        "name" : "Alfresco Workflow Environment"
    },
    {
        "isfolder" : false,
        "name" : "New Text Document.txt"
    }
  ]
}


But i need <a href tag > to be defined for each folder in the list..or can any one  please give me some guidelines to modify or add new json response file for the existing default alfresco Web Script (localhost:8080/alfresco/service/sample/folder/Company%20Home)

Outcomes