idxbroker / wordpress-plugin

IMPress for IDX Broker
http://www.idxbroker.com
GNU General Public License v2.0
22 stars 30 forks source link

One Widget for all IDX Broker (middleware created) Widgets #12

Open bhubbard opened 8 years ago

bhubbard commented 8 years ago

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:

angelacevans commented 8 years ago

@idxbroker Having an issue on a client's site where she has over 2500 widgets set up in IDX Broker and now her widgets.php page won't load because of memory timeout.