cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the custom root folder of Alfresco.DocumentList?

kot4
Champ in-the-making
Champ in-the-making
Hello,

I create extension in Alfresco 4.0 with using Alfresco.DocumentList in it. I need to set custom root folder of Alfresco.DocumentList, I try to set rootNode property, but it dosn't work and Alfresco.DocumentList set default root folder. What I do wrong?

for example: if I want set "sites" as root folder, I set property rootNode as "alfresco://company/home/sites", but it dosn't set root folder for it:

   

    var documentsOfTitle = new Alfresco.DocumentList("${doclistId}").setOptions({
        siteId: "",
        containerId: undefined,
        rootNode: "alfresco://company/home/sites",
        usePagination: true,
        sortAscending: true,
        sortField: "cm:name",
        showFolders: true,
        simpleView: true,
        highlightFile: "",
        replicationUrlMapping: {},
        repositoryBrowsing: true,
        useTitle: true,
        userIsSiteManager: true
    }).setMessages(
        ${messages}
    );
    …

regards
1 REPLY 1

kot4
Champ in-the-making
Champ in-the-making
I  used incorrect root node path… if set "/app:company_home/st:sites" value, it working properly  Smiley Happy

thank you for your attention