cancel
Showing results for 
Search instead for 
Did you mean: 

sub folder in document library as rootNode for user

ayubalfresco
Champ in-the-making
Champ in-the-making
Hi,

I want  a sub folder within Document library as rootNode.

For Example In Document Library the folder path is Documents > XYZ > User1. When user accesses Document Library  by default the content in Documents > XYZ > User1 should be displayed instead of content in Document. If we customize rootNode property from below code which is part of toobar.get.js it should work..I replaced rootNode with XYZ and it works. But rootNode="XYZ/User1" does not work

Not sure how to speciy the sub folder ?

<pre>

var docListToolbar = {
      id: "DocListToolbar",
      name: "Alfresco.DocListToolbar",
      options: {
         siteId: (page.url.templateArgs.site != null) ? page.url.templateArgs.site : "",
         rootNode: toolbar.rootNode != null ? toolbar.rootNode : "",
         hideNavBar: Boolean(toolbar.preferences.hideNavBar),
         googleDocsEnabled: toolbar.googleDocsEnabled,
         repositoryBrowsing: toolbar.rootNode != null,
         useTitle: (useTitle == "true"),
         syncMode: toolbar.syncMode != null ? toolbar.syncMode : "",
         createContentByTemplateEnabled: model.createContentByTemplateEnabled,
         createContentActions: model.createContent
      }
   };
   model.widgets = [docListToolbar];
</pre>
2 REPLIES 2

mitpatoliya
Star Collaborator
Star Collaborator
Do you want to change start location for repository in Alfresco Share?
Check this thread
https://forums.alfresco.com/forum/end-user-discussions/alfresco-share/how-hide-folders-alfresco-shar...

Yes I want to change the start location dynamically, however only for a particular site. Applying on share-config-custom.xml I need a static path but the path is dynamic and also should be applied to a specific site.

for example user1234 the path would be Documents > 34 > user1234
for user2356 path would be Documents > 56 > user2356

In the toolbar.js if I change the root node to 34 the path is going directly to Documents > 34. However if the path is rootNode: "34/user1234" its not working.

Is there an api which will return the path which is relative to document library in share ?