Roundcube Community Forum

 

Address book with sub groups

Started by k4200, August 14, 2011, 07:25:37 AM

Previous topic - Next topic

k4200

Hi there,

I'm working on an address book plug-in, and want to have sub groups. For example, the top level would have Branch A, B ..., the second level would have Sales Dept., Development Dept. and so on. How would you achieve this? I searched in the forum, but couldn't find much information.

Thanks

gaspare_novara

Your plugin does this? you released this plugin? where can I find it?

k4200

I don't remember what I did exactly, but here is the summary:

- Copy example_addressbook plugin and rename it. e.g. foo_addressbook
- Implement foo_addressbook_backend, which extends rcube_addressbook
    - list_records returns addresses under the selected item.
- Modify CSS and html so nested groups are displayed with some space on the left.

Sorry for not giving much information. I did it for a commercial product, and it was more than a year ago.