[turba] Additional email field in the addressbook ?
Bruno Costacurta
techie at costacurta.org
Fri Feb 12 22:13:26 UTC 2010
>> Zitat von Bruno Costacurta <techie at costacurta.org>:
>>
>>> Hello,
>>>
>>> the default addressbook contains only one email field (under
>>> 'Communications')
>>> How to add other field ? (eg. 'Private email' and 'Work email')
>>
>> With the recent Turba releases you only need to adjust your
>> sources.php in the Turba config directory and add the matching
>> fields in the backend database. As a guideline you should use the
>> "email" field and add "workEmail" and "homeEmail" accordingly.
>
> You also need to make sure that any fields you add in sources.php are
> also configured properly in attributes.php.
>
It works. Many thanks for your help.
So briefly, I did the following :
In the attributes.php file the objects homeEmail and workEmail already exit.
So I modified the sources.php to add these two fields, respectively in
both maps and tabs array (note: same syntax than the default email
object).
Also, regarding the persistence configuartion, I modified the
turba_objects database table to add two new fields called
object_homeemail and object_workemail (note: here also same syntax
than the default objet_email).
Bye,
Bruno
----------------------------------------------------------------
More information about the turba
mailing list