wordpress-plugin
wordpress-plugin copied to clipboard
One Widget for all IDX Broker (middleware created) Widgets
Currently the plugin created a new widget for each one that is generated via middleware. If a client has many widgets this creates a nightmare widgets page for the client. Instead I propose it being a single widget with a dropdown option.
From the screenshot example, and as I presented at the IDX Broker dev conference, this seems to be a much better solution. For starters, you can easily choose the widget from the drop-down, and see the ID associated with that widget. It also provides a clear link to let the user know they may need to refresh the list. And finally it provided a clear message that you don't want to use the same widget twice on a page. In fact my demo code could be improved to say make the widget options box turn red with a message should someone try to add the same widget twice. Although that still would not account for any use by a shortcode.
Another benefit to this, is all the widgets would be saved in one option, vs a new option for each widget as it currently saves the data: