I would expect from that code that changing the $items array in the plugin should change the toolbar. That didn't work, so I also added it via $scriptProperties['items'], thinking that might work instead, but no dice there either.

Am I looking at this completely wrong, or is the pass-by-reference way of working with plugin variables completely broken?]]>markhOct 10, 2013, 03:02 PMhttps://forums.modx.com/thread/87107/adding-icon-to-the-resource-toolbar#dis-post-479882https://forums.modx.com/thread/87107/adding-icon-to-the-resource-toolbar#dis-post-480039

Thanks for the example code, that'll save me some time!]]>markhOct 10, 2013, 07:17 PMhttps://forums.modx.com/thread/87107/adding-icon-to-the-resource-toolbar#dis-post-479904https://forums.modx.com/thread/87107/adding-icon-to-the-resource-toolbar#dis-post-479898
Never did that (wasn't even aware of the event), but i also failed at adding it via PHP.
Another option could be via ExtJS