Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-27-2009, 05:28 AM
Trained Alumni
 
Posts: 336
Default Changes in 6.0

Hi.

Is there any document online where I can find information on what changed in Zimlet development between 5 and 6 series?

thanks
__________________
YetOpen S.r.l. ~ Your open source partner
Lecco (LC) - ITALY
http://www.yetopen.it
Reply With Quote
  #2 (permalink)  
Old 12-02-2009, 03:06 AM
Senior Member
 
Posts: 72
Default Yes please!

Please zimbra I would apricate such a doc, too! The zimlets dev whitepaper 0.97 is not even correct for ZCS 5 in some points.
Reply With Quote
  #3 (permalink)  
Old 12-02-2009, 07:27 AM
Zimbra Employee
 
Posts: 187
Default

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
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!

Last edited by rrao; 12-02-2009 at 09:35 AM..
Reply With Quote
  #4 (permalink)  
Old 12-02-2009, 08:53 AM
Trained Alumni
 
Posts: 336
Default

rrao, thank you very much for your reply.

I'd be more interested in know the incompatibilities between the two versions.
Mainly because I'd like to fix the Alfresco zimlet (asap), but actually I've no experience with zimlets, yet
thanks
__________________
YetOpen S.r.l. ~ Your open source partner
Lecco (LC) - ITALY
http://www.yetopen.it
Reply With Quote
  #5 (permalink)  
Old 12-02-2009, 09:37 AM
Zimbra Employee
 
Posts: 187
Default

Quote:
Originally Posted by maxxer View Post
rrao, thank you very much for your reply.

I'd be more interested in know the incompatibilities between the two versions.
Mainly because I'd like to fix the Alfresco zimlet (asap), but actually I've no experience with zimlets, yet
thanks
#1, #2 and #5 are the once that are changed and you need to be aware of if your zimlet has stopped working in 6.x but was working in 5.x
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.