Default view for folder trees
Collapse
X
-
Coded this way:
it finally works. I had to do some browser refreshs until it appeared this way.Code:{ "isExpandedByDefault": true, "isCollapsedByDefault": false }
Thanks a lot for your patient help. -
I again tried to make it work. I renamed the present file DocumentFolder.json for it does not have effect.
I created a new DocumentFolder.json in the place where you mentioned with the following code:
But it did not work either. Cleared cache again, did rebuild and all that, but the default view does not change.
Perhaps it could be, because I modified the document entity, but only by GUI in Admin.Leave a comment:
-
Also please that you can only apply one value at the time it is either "isExpandedByDefault": true (which will give you the tree view but also will expand all files under any folder Or "isCollapsedByDefault":true which also produce tree view but it will give you access to only file on root and folder to access on top of the list. You can't use both value as true it will not work.Leave a comment:
-
why did you mentioned here that you already have Document.json ? if you are making changes in Document.json it is not going to work, it has to be DocumentFolder.jsontested again, closed the browser, cleared cache (browser and espoCRM), rebuild, closed browser again, no way.
A bit strange, I already have a Document.json file at that location with the following code:
but even, if I delete that code and put in only your provided snippet, it won`t work. I can switch the view by the ellipsis menu, but whenever I close the app, opening the next time will show the same only folder viewCode:{ "kanbanViewMode": false, "color": null, "iconClass": null }Leave a comment:
-
That is weird i have just tried the same code on another installation and it working 100%. Just created a new file on custom/Espo/Custom/Resources/metadata/clientDefs/DocumentFolder.json and copied code and it is working perfect.
can you share your code (DocumentFolder.json)!Leave a comment:
-
tested again, closed the browser, cleared cache (browser and espoCRM), rebuild, closed browser again, no way.
A bit strange, I already have a DocumentFolder.json file at that location with the following code:
but even, if I delete that code and put in only your provided snippet, it won`t work. I can switch the view by the ellipsis menu, but whenever I close the app, opening the next time will show the same only folder viewCode:{ "kanbanViewMode": false, "color": null, "iconClass": null }Last edited by shalmaxb; 05-31-2022, 01:39 PM.Leave a comment:
-
-
you can achieve this by creating a new file under custom/Espo/Custom/Resources/metadata/clientDefs/DocumentFolder.json and use code below:How can I achieve the document`s entity view to be default like this:
Document folders allow creating a so-called document repository where all the files are properly categorized according to the needs of the company. Each document folder can have several sub-folders. The folders can be presented in a tree view or a list view.
When I open the documents, I always get the folder view, but I need the tree view with the folders and documents on the right side.
isExpandedByDefault makes the tree view applied by default and isCollapsedByDefault makes the folders collapsed by default just like the image on the link you shared.Code:{ "isExpandedByDefault": true, "isCollapsedByDefault": true }
hope this helps.Last edited by rabii; 05-30-2022, 03:03 PM.Leave a comment:
-
I have already tried all the possibilities and they work for the moment, but the next time I open the documents, it displays again the folder view.Leave a comment:

Leave a comment: