While discussing sauserprefs plugin with Phil question in subject
raised.
Personally I don't see the need for it in either the core or my plugin. People can alter the template file to remove sections they dont want or change the order of the sections.
I see two options to achieve that:
- Add one more configurable array, $hide_sections (or $show_sections).
This is my preferred one and an easiest to implement. 2) Pre-generate all sections in turn when showing section list and show only non-empty ones. This one requires a bit of work.
I don't think adding more options to the config is a good idea, I think it would be a little confusing to have two different options to essentially hide the same thing.
Another idea might be to allow for two different types of entry in the 'dont_override' option, the individual options written as they are now and entire sections written slightly differently (to avoid conflict) say "{mailbox}"
Example patch attached. Also attached is a patch to allow the first item in the prefs section list to be anything, not just 'general' (at the moment if you remove general from the list then there are JS errors).
Phil
--- 8< --- detachments --- 8< --- The following attachments have been detached and are available for viewing. http://detached.gigo.com/rc/54/e4AMmYi+/rc_remove_pref_secti.patch http://detached.gigo.com/rc/54/e4AMmYi+/rc_list_select_first.patch Only click these links if you trust the sender, as well as this message. --- 8< --- detachments --- 8< ---
List info: http://lists.roundcube.net/dev/