cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with folder listing Web Script in Alfresco.

suryabadami
Champ in-the-making
Champ in-the-making
I have created Folder listing Web srcipt using http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2Fws-folderLi... 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)
2 REPLIES 2

mitpatoliya
Star Collaborator
Star Collaborator
You mean to say you want the URL in place of just the name?
In any case you need to modify the js file behind that webscript.
There you need to change the logic

suryabadami
Champ in-the-making
Champ in-the-making
Nope… I should have the name of the folders itself..But once i click that particular folder it has to take me to the folder details…