Author Topic: Adding contact fields as of version 0.8  (Read 2164 times)

Offline Paul999

  • Newbie
  • *
  • Posts: 1
Adding contact fields as of version 0.8
« on: September 18, 2012, 03:27:01 PM »
Hi,

I'm looking at how I might be able to add extra contact fields that aren't currently supported.

I've looked around the forums and mailing lists and in the code and have come to the tentative conclusion that one needs to add any additional field names/types by editing the hard coded lists in program/steps/addressbook/func.inc and program/steps/addressbook/edit.inc and making sure your contact class (default rcube_contacts) uses the desired fields.

Looks like I need to also may need to make sure the label strings I provide have i18n placeholders (guessing this because the labels I added are shown inside brackets in the interface) and of course make sure the contact class stores the extra fields correctly.

Before I go too far down this path, am I doing the right thing or is there an easier way to accomplish this?