Zimbra web client - how to change maximum number of tags preloaded

General discussion about Zimbra Desktop.
fuki
Posts: 7
Joined: Sat Sep 13, 2014 3:04 am

Zimbra web client - how to change maximum number of tags preloaded

Postby fuki » Mon Nov 10, 2014 9:13 am

Hello everyone,


 we are running on opensource Zimbra 8.5.1 now. One of my colleagues likes tags so much, that he had created more than 100 of uniq tags to


mark his mail communication.


  The problem is, that if he will press 't' in ZWC to tag the e-mail, only first 100 of tags is listed (and filtered by search string helper). At the


last line he can find "read more tags" link, which will provide the rest of them.


  Is it possible to set higher number of tags to be preloaded on 't' press? I can't find such setting in the Admin Console. I hope it's not hardcoded...



 Thank you,


  Fuki



User avatar
cdamon
Advanced member
Advanced member
Posts: 51
Joined: Tue Jul 22, 2014 12:17 pm

Zimbra web client - how to change maximum number of tags preloaded

Postby cdamon » Mon Nov 17, 2014 11:55 am

Sorry, it is hard-coded. Having that many tags or folders seemed to us to be rare enough that we didn't want to add yet another setting. If you feel like changing it in the code, it's in .../ZimbraWebClient/WebRoot/js/zimbraMail/share/view/ZmTreeView.js:



ZmTreeView.MAX_ITEMS = 50;



The default initial fetch is two times that constant.
fuki
Posts: 7
Joined: Sat Sep 13, 2014 3:04 am

Zimbra web client - how to change maximum number of tags preloaded

Postby fuki » Tue Nov 18, 2014 8:35 am

Thank you for your comment. I've tried to change the value to 70 and later to 100, but no change. I've restarted jetty (zmmailboxdctl restart) after every code update. I've also tried to open the session with completely new web browser's profile. Are you completely sure, that this is the right variable? Or should I restart other service or cleanup some server-side cache ?

Thanks!
fuki
Posts: 7
Joined: Sat Sep 13, 2014 3:04 am

Zimbra web client - how to change maximum number of tags preloaded

Postby fuki » Tue Nov 18, 2014 11:51 am

Ok, I've updated this variable in two files:

NewWindow_2_all.js.zgz

Startup1_2_all.js.zgz

in

Now (no restarts needed, just browser web client reload using F5) it works fine. Thank you for the direction.



Fuki
User avatar
cdamon
Advanced member
Advanced member
Posts: 51
Joined: Tue Jul 22, 2014 12:17 pm

Zimbra web client - how to change maximum number of tags preloaded

Postby cdamon » Tue Nov 18, 2014 12:03 pm

You're welcome! Sorry, I should have mentioned the packages that file appears in, since in an actual build those are what need to be changed.
hajicjan
Posts: 1
Joined: Fri May 04, 2018 1:02 pm

Re: Zimbra web client - how to change maximum number of tags preloaded

Postby hajicjan » Fri May 04, 2018 1:10 pm

Dear all, we have been able to do this for the web client. Is there similar hardcoded constant for the desktop (it also shows only 50 tags, I have several hundred...)? Or even a parameter to set? thanks!

Return to “General Questions”

Who is online

Users browsing this forum: No registered users and 11 guests