Hi all,
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?
screenshot to clarify more: The plugin item doesn't have an icon
BR,
Mark
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.
Hi Aleksander,
Thank you very much! It was actually quite easy with the external stylesheets also. I'm not sure if there is a need for adding inline styles. Maybe this even forces cleaner html...
I'll ask the original plugin author (Marcelo Salgado) if he wants to publish this altered version or if I shall do that.
icon visible
BR,
Mark
On 07/11/2012 13:31, A.L.E.C wrote:
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.