Results 1 to 5 of 5

Thread: Adding/Searching Contact Fields

  1. #1
    Join Date
    Apr 2007
    Posts
    3
    Rep Power
    8

    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.

  2. #2
    Join Date
    Sep 2005
    Location
    Sunnyvale, CA
    Posts
    269
    Rep Power
    10

    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!

  3. #3
    Join Date
    Apr 2007
    Posts
    3
    Rep Power
    8

    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.

  4. #4
    Join Date
    Sep 2005
    Location
    Sunnyvale, CA
    Posts
    269
    Rep Power
    10

    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!

  5. #5
    Join Date
    Apr 2007
    Posts
    3
    Rep Power
    8

    Default

    Great, thanks for the quick reply!

Similar Threads

  1. Replies: 12
    Last Post: 06-13-2013, 08:55 AM
  2. Change Default Contact Display Fields
    By skullbolix in forum Administrators
    Replies: 3
    Last Post: 02-26-2010, 01:24 AM
  3. Outlook Migration Wizard + Contact Groups
    By thegeekiator in forum Migration
    Replies: 4
    Last Post: 07-13-2007, 03:00 PM
  4. Replies: 1
    Last Post: 10-11-2006, 03:47 PM
  5. Adding custom contact fields (and other mods)?
    By BillS in forum Developers
    Replies: 5
    Last Post: 03-02-2006, 11:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •