How to set the custom root folder of Alfresco.DocumentList?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2012 04:41 AM
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:
regards
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
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2012 09:15 AM
I used incorrect root node path… if set "/app:company_home/st:sites" value, it working properly
thank you for your attention

thank you for your attention
