[RCD] Pulgin: Sub menues how-to?

Thomas Bruederli thomas at roundcube.net
Sat Sep 28 12:06:20 CEST 2013


Thomas Bruederli wrote:
> Cor Bosman wrote:
>> On Sep 27, 2013, at 12:58 PM, "A.L.E.C" <alec at alec.pl> wrote:
>>
>>> On 09/27/2013 12:46 PM, Cor Bosman wrote:
>>>> Im kind of stuck there.
>>> If you want an entry in Settings block/list you're on your own, you need
>>> to create templates, hooks for other plugins, etc. However, if you just
>>> decide to create entries in Settings > Preferences, you have everything
>>> built in preferences_list and preferences_sections_list hooks.
>> Can't this be improved in the future? Is there a reason we cant add a settings block through a hook in PHP? And then have the settings code allow you to add sections to any settings block, including settings blocks added by plugins?
> 
> You're too fast for me :-) I still wanted to respond on your question in
> another thread.
> 
> The settings tabs are a bit of a legacy in Roundcube and should be improved
> by a <roundcube:object> type of thing that collects all entries using a
> plugin hook. We're not yet there but expect some changes on this.

See https://github.com/roundcube/roundcubemail/commit/c49c35ca0f
and https://github.com/roundcube/roundcubemail/commit/cf46aefd9d

Kind regards,
Thomas




More information about the dev mailing list