Author Topic: Address book with sub groups  (Read 4999 times)

Offline k4200

  • Newbie
  • *
  • Posts: 2
Address book with sub groups
« on: August 14, 2011, 07:25:37 AM »
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

Offline gaspare_novara

  • Newbie
  • *
  • Posts: 1
Re: Address book with sub groups
« Reply #1 on: December 03, 2012, 07:33:31 AM »
Your plugin does this? you released this plugin? where can I find it?

Offline k4200

  • Newbie
  • *
  • Posts: 2
Re: Address book with sub groups
« Reply #2 on: December 03, 2012, 08:09:02 AM »
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.