Hi, We are currently working on updating Wiki about 6.x, but here are the major differences or improvements b/w 5.x and 6.x
1. [changed] Zimlet's deployment folder has changed from:
/opt/zimbra/jetty/webapps/service/zimlets/
to:
/opt/zimbra/zimlets-deployed/
2. [changed]There is a newer and better API to add toolbar buttons called initializeToolbar.
Below is the API call..
Code:
initializeToolbar API allows us to create toolbar buttons very easily.
@app: current application
@toolbar: toolbar object
@controller: App’s controller
@View: Current view Id of the app (App might have multiple Views, like conv view and msg view)
com_zimbra_social.prototype.initializeToolbar = function(app, toolbar, controller, view)
The way you would use it is..
Code:
Com_Zimbra_Test.prototype.initializeToolbar = function(app, toolbar, controller, viewId) {
if(viewId =="CLV"){
//add code to display button
}
}; Code:
6.x supports multiple compose-windows to be open at the same time in tabs. So the implementation should should check for indexOf("COMPOSE") >=0
Com_Zimbra_Test.prototype.initializeToolbar = function(app, toolbar, controller, viewId) {
if(viewId.indexOf("COMPOSE”) >=0){
//add code to display button
}
};
3.[added] You can create a Zimlet in its own tab
Here is a test zimlet:
http://bugzilla.zimbra.com/attachment.cgi?id=14975
4.[added] You can now save zimlet data in DB(10k per item limit) :
4.1 You can store data by creating a soap call with some unique key. Key could be any string
Bug 41198 – Use SetMailboxMetadataRequest for setting all web client-specific implicit prefs
SetMailboxMetadataRequest
GetMailboxMetadataRequest
4.2 You can associate some custom data for any zimbra-item. For example: say you want to store some notes/color information for each email. You can do such things using the below api.
Bug 39719 – Need a general, extensive way to store per-user data by JavaScript
SetCustomMetadataRequest
GetCustomMetadataRequest
PS: We are adding a
JS wrapper to 4.1 and 4.2 SOAP APIs, they should be in 6.4 or in 6.5
5. [changed] JSP Taglib library support that can be used to talk to Zimbra server(not custom JSP support) has changed from 5.x to 6.x as well.
Please read this wiki link:
Zimlet JSP - Zimbra :: Wiki