Default view for folder trees
Collapse
X
-
Coded 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:
-
tested 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:
Code:{ "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:
Code:{ "kanbanViewMode": false, "color": null, "iconClass": null }
Last edited by shalmaxb; 05-31-2022, 01:39 PM.Leave a comment:
-
-
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.
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: