Share repository view with custom root folder
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2010 05:33 AM
Hi,
I've configured for 3.3g Community to use a custom root folder for the Repository view.
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?
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?
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2010 06:21 AM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2010 06:46 AM
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)
ops:
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)

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2013 07:35 AM
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…
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…
