cancel
Showing results for 
Search instead for 
Did you mean: 

Repository left side tree in alfresco share take too many memory and slowly loading time in IE.(If there are over 1000 folders)

tinlinnnsoe
Champ in-the-making
Champ in-the-making
Hi everybody,

I used the alfresco community 4.0 d version and
I also customized it from last year.

Now I found one problem in community edition.

In Alfresco Share,
When I click repository menu in Header,in the left side tree display folder structure.

There is one problem that if there are more than 1000 sub folders in one folder.
When I click that parent folder, cannot display all 1000 sub folder in tree.
Only display just over 544 folder in tree and "Too many sub folder to display" tree node is displayed as following.

/Main Folder
——–/Sub Folder 1
——–/Sub Folder 2
——–/Sub Folder 3
——–/Sub Folder 4
——–/Sub Folder …
——–/Sub Folder …
——–/Sub Folder …
——–/Sub Folder …
——–/Sub Folder …
——–/Sub Folder …
——–/Sub Folder 544
——–/Too many sub folders to display

Another main problem is,
loading time for displaying these sub folders take very long time and it harm to PC also.
Also memory usage is very increased.
Sometimes,I have to close the alfresco application from task manager.

This problem is only in IE browser. In Firefox and Chrome,it is okay.

But I would like to use Share in IE by my requirement.
I debugged the javascript file "tree.js".

I can make to display all 1000 sub folder OR
I can make to display only 200 sub folders.

But I would like to make paging in tree.
There will be 20 page index in main repository window.

If user click 1 page index from main window, from "Sub Folder 1" to "Sub Folder 50" displayed in main window.
At that time,I would like to displayed as following in left side tree.

/Main Folder
——–/Sub Folder 1
——–/Sub Folder 2
——–/Sub Folder 3
——–/Sub Folder 4
——–/Sub Folder …
——–/Sub Folder …
——–/Sub Folder …
——–/Sub Folder …
——–/Sub Folder …
——–/Sub Folder 50
——–/There are too many next sub folders to display and Please click page index from main window

If user click 2 page index from main window, from "Sub Folder 51" to "Sub Folder 100" displayed in main window.
At that time,I would like to displayed as following in left side tree.
/Main Folder
——–/There are too many previous sub folders to display and Please click page index from main window
——–/Sub Folder 51
——–/Sub Folder 52
——–/Sub Folder 53
——–/Sub Folder …
——–/Sub Folder …
——–/Sub Folder …
——–/Sub Folder …
——–/Sub Folder …
——–/Sub Folder 100
——–/There are too many next sub folders to display and Please click page index from main window.

So I would like to make as above.
Give me please any opinions or your feedback.
Also let me know whether it can be possible or not.

Best regards,
Tin Linn Soe
2 REPLIES 2

scouil
Star Contributor
Star Contributor
Hi,

If I remember well the webservice that is called here already accepts a "max" parameter that is -1 by default.
So that customisation is probably possible with some client-side customisation only.

Also one thing you have to be careful about, that exact same tree component is reused in several places.
For example I think when you perform the "move to" action, that's the same component. So make sure your customisation fits both.

Regards

tinlinnnsoe
Champ in-the-making
Champ in-the-making
Thank you,Scouil

I am now okay for my tree implementation.

Yes,Alfresco repository tree use treenode API service "GET /alfresco/s/slingshot/doclib/treenode/site/{site}/{container}/{path}".
That api url included "children" and "max" parameters.

I added new new parameter like "pageNo" in that service and copy and create as new service with difference name.
Other actions like "move to","copy" is okay to use original service or they can use my new service.

I customized the treeview rendering process in client side javascript "tree.js".
Now it is okay.

Best Regards
Tin