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

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 04-12-2007, 08:22 AM
Zimlet Guru & Moderator
 
Posts: 288
Default How to write formatter?

hi all,

I read on the blog that there is formatter that we can use and I quote this :

"We'd also like to encourage people to write their own formatters. There is a framework on the server-side for writing formatters, and it is actually quite easy. The Zip formatter, for example, is less then two pages of code."

I'd like to write my own formatter so can someone explain how I can do that?
What is this framework? where is it?
Reply With Quote
  #2 (permalink)  
Old 04-12-2007, 07:44 PM
Zimbra Employee
 
Posts: 228
Default

The ability to easily add a formatter without building from source hasn't materialized yet. If you grab the source you can look at this directory for all the formatters:

http://svn.sourceforge.net/viewvc/zi...ice/formatter/

And this file needs to be updated to "plugin" a new formatter (look at the UserServlet() constructor):

http://svn.sourceforge.net/viewvc/zi...va?view=markup

Ideally we should be reading the extra plugins from server-side extensions and/or local config. We probably could make UserServlet.addFormatter public so it could be called from an extension.
__________________
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.