SneakyDave
Well-known member
OK, I created a new widget based on the online users widget, and it works pretty well. I want to add an option to it to make the widget more useful, so I created/updated the admin template for the widget to include a new textarea that I want to make an option.
I now have the textarea for the widget displaying on the widget definition page, but nothing is being saved to it. I have the new option added to my widget class that extends AbstractWidget and a verifyOptions method.
Do I need a code event listener to save this option value, or what am I missing here? I could create an option group for the addon, but that seems a little clunky to have some options in the widget definition, and some in the site options.
I now have the textarea for the widget displaying on the widget definition page, but nothing is being saved to it. I have the new option added to my widget class that extends AbstractWidget and a verifyOptions method.
Do I need a code event listener to save this option value, or what am I missing here? I could create an option group for the addon, but that seems a little clunky to have some options in the widget definition, and some in the site options.