Hi Cor
Is there a plug-in that does sub-menues in an easy way I could use as a template? Could someone help me with a simple template?
It's not entirely clear what you mean with submenus. But since the mention the managesieve plugin, I suppose you mean a box with multiple settings, like the Preferences->Section box. If you read back a week or so ago in the archives of this list, you'll see a discussion started by me about that exact same subject.
This is actually very difficult. To add your settings you basically have 3 options:
- the easiest way is to add settings to existing sections under
preferences. For instance, you can create a new setting under Prefences->User Interface. Many plugins do this.
Hmm, not realy what I intended, but that could be an option if it can't easily be done in another way. What plugin could I use as a template to find out how to do this?
- you can also add a new section under one of the existing preferences
options. For instance, my Message Highlights plugin creates a section under Preferences. There are a few other plugins that do this.
That's more what I wanted to do.
- you can create a whole new tab (this is done through javascript), which
creates a row in the leftmost preferences box in the larry theme.
That's what I was trying.
I actually created a plugin that does some of 3). My plugin creates a new tab in the leftmost box. Thats all it does. But then you can create other plugins that hook into that plugin so they're shown in a second box on your new tab. It's currently pretty limited, and pretty much mimics the top preferences tab in functionality simply because I could not figure out how to do more complex UI interactions to make it more generic. it is a pretty ugly hack, but afaik it's not possible to make this any easier because roundcube does not really provide the settings infrastructure to accomplish this.
If you want to see what I mean, look at this screenshot: http://grab.by/qxPm
It looks like you got the missing part of what I wanted to do. I managed to write a plugin, that hooks into the leftmost 'settings' box and where I can display, change and save settings, but I did not manage to create the 'sections' bot, to be able to display different information in different boxes.
How do I create a plugin that hooks into a plugin that created a settings 'tab'?
What I acutaly try to achieve is this structure:
Leftmost Settings-Tab 'Custom Settings' When you select this Tab, this opens a row 'Sections' with:
And possibly if an account has a 'domain manager flag' some more sections like:
I can't use and existing plugins for that purpose, because we use some custom hacked MIMEDefang scripts to add those funcionalities. The Advantage is, that everything is managed from one database.
Mit freundlichen GrĂ¼ssen
I m p r o W a r e A G -
______________________________________________________
Zurlindenstrasse 29 Tel +41 61 826 93 07 CH-4133 Pratteln Fax +41 61 826 93 02 Schweiz Web http://www.imp.ch ______________________________________________________