On 11/07/2012 12:53 PM, Mark Moses wrote:
I use an old plugin ( pf_alias) and I'd like to alter it to fit nicely into the new larry skin. I don't know however if it's possible to add a list-icon from a plugin. I checked the managesieve plugin ( although that one places an icon in the settings pane and not in the section pane) but it seems that one uses an icon outside it's own plugin directory ( one from listicons.png)
Can anyone tell me if it's possible to add a custom icon from a plugin into the settings>section-pane without altering anything else but the plugin code?
You can't set inline style for list item in preferences_sections_list hook. You'd need to inject css style definition to the page containing:
#sections-table #rcmrowyour_section_name td.section { background-image style here }
using $this->include_stylesheet() or $RCMAIL->output->add_header().
ps. extending rcmail::table_output() with support for inline 'style' attribute on table row shouldn't be hard, I'd accept such patch.