Roundcube Community Forum

 

Adjust visible fields in Address Book

Started by kolaloka, January 04, 2017, 04:31:23 AM

Previous topic - Next topic

kolaloka

I am trying to change addressbook displayed fields so that it would display a street or location along with the name in address list and when autocomplete email address like this:

originally:
John Black <[email protected]>
desired:
John Black - Manchester <[email protected]>

Can anyone give me a hint which instruction or variable to change?

Thanks a lot. Kolaloka

alec

Try $config['contact_search_name'] = '{name} {street} - {locality} <{email}>'; but this is only for autocompletion.

kolaloka

Thank you very much for your quick reply.
I tried what you suggested, and even did some modifications, however it does not work as expected. Just shows the 'name' and 'email', or only 'email'.

Hoever I found a common sense workaround:
I remapped my shared ldap address book like this:
# 'name'        => 'cn',   
    'firstname'   => 'givenName',
    'middlename'  => 'sn',
    'surname'     => 'locality',
and that works
:-)
The important thing is to hide the 'name', so that RC tries to construct it from firstname+middlename+surname.