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-25-2007, 03:41 PM
New Member
 
Posts: 3
Default Adding/Searching Contact Fields

Hi folks,

I'm just getting into Zimbra, but I'd appreciate it if somebody could tell me how I can add custom fields to the contacts and if that data will be automatically searchable, or must I do some extra coding for that.

Thanks,
Ed.
Reply With Quote
  #2 (permalink)  
Old 04-25-2007, 03:56 PM
Zimbra Employee
 
Posts: 269
Default

This is currently not supported in the web client. See bug 14177 or bug 10056.

Not sure whether those custom fields would be searchable or not..
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 04-25-2007, 11:01 PM
New Member
 
Posts: 3
Default

Thanks for the reply.

Can you tell me where I should start looking if I wanted to hack the UI - as Dan Karp suggests in Bug 10056.

Thanks,
Ed.
Reply With Quote
  #4 (permalink)  
Old 04-25-2007, 11:54 PM
Zimbra Employee
 
Posts: 269
Default

You'll want to hack the addrbook files under <zimbra_src>/ZimbraWebClient/WebRoot/js/zimbraMail/abook

The best way to learn this code is to thru a debugger such as Venkman. For example, place a breakpoint on ZmContactListController's "show" method and step thru the code.

- ZmContact holds all the contact data.
- ZmContactList holds all the contacts (a list of ZmContact's)
- ZmContactView has code to edit or create a new contact
- ZmContactSplitView and ZmContactCardsView is what you see when viewing contacts (ZmContactsBaseView is their base class).

Once you make any changes, you'll want to redeploy a development build (vs. production) of the web client (you are doing this on a test machine, right?). Do this by running "ant deploy" in the ZimbraWebClient folder to redeploy the entire project (i.e. deploying for the first time) or "ant dev-sync" to just copy the files that were modified (i.e. every subsequent time you make any additional changes).

I have to warn you, this wont be easy as there are many other factors involved beyond the scope of this post. Not to mention, you are risking incompatibility with future versions of ZCS.

Goodluck.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #5 (permalink)  
Old 04-26-2007, 12:31 AM
New Member
 
Posts: 3
Default

Great, thanks for the quick reply!
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.