cancel
Showing results for 
Search instead for 
Did you mean: 

Share repository view with custom root folder

loftux
Star Contributor
Star Contributor
Hi,

I've configured for 3.3g Community to use a custom root folder for the Repository view.
   <!– Repository Library config section –>
   <config evaluator="string-compare" condition="RepositoryLibrary" replace="true">
      <visible>true</visible>

      <root-node>alfresco://company/home/MyRoot</root-node>

      <tree>
         <evaluate-child-folders>false</evaluate-child-folders>
      </tree>
   </config>
And of course created the custom folder 'MyRoot' in Company Home.

It all works well, the tree view start from that custom folder, and navigating folders using tree view. What doesn't work is if you enable folders to be displayed, and try to click the folder to navigate to a subfolder, you will get an error. A double path is appended, it is trying to fetch MyRoot/MyRoot/myotherfolder and throws error in share 'Path not found: MyRoot/MyRoot/myotherfolder'.

I thought that would be quite trivial to fix, just detecting the double entry in the beginning, but it turns out there are quite a few scripts involved. Both client side scripts, server side alfresco webscripts, and they are used both for Sites and Repository view, so by fixing repository view, I may break Sites view.

Where should the fix go? Or do someone already have a fix?
3 REPLIES 3

mikeh
Star Contributor
Star Contributor

loftux
Star Contributor
Star Contributor
Thanks,

work as stated in the referenced thread, use
<root-node>workspace://SpacesStore/c60b5d23-172d-4e52-a41c-259616841a4a</root-node>
(and you pick up the nodeRef for the space you want to have as root)

Lesson learned, when it says nodeRef in comments, it acutally means nodeRef (an not a path)   Smiley Surprisedops:

tiagooliveira
Champ in-the-making
Champ in-the-making
Hello.
How I change the folders in shared repository, or change to another root-node…

e.g.
Repository:
      Folder1:
           hello worl.pdf
      Folder2:
      Folder3:

I need change the default folders…