How to write formatter?

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
tdesorbaix
Outstanding Member
Outstanding Member
Posts: 366
Joined: Fri Sep 12, 2014 10:31 pm

How to write formatter?

Postby tdesorbaix » Thu Apr 12, 2007 10:22 am

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?


schemers
Outstanding Member
Outstanding Member
Posts: 225
Joined: Fri Sep 12, 2014 9:53 pm

How to write formatter?

Postby schemers » Thu Apr 12, 2007 9:44 pm

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:

And">http://svn.sourceforge.net/viewvc/zimbra/trunk/ZimbraServer/src/java/com/zimbra/cs/service/formatter/
And
this file needs to be updated to "plugin" a new formatter (look at the UserServlet() constructor):

Ideally">http://svn.sourceforge.net/viewvc/zimbra/trunk/ZimbraServer/src/java/com/zimbra/cs/service/UserServlet.java?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.

Return to “Developers”

Who is online

Users browsing this forum: No registered users and 1 guest