August 27, 2013

Displaying Content when a Widget Returns No Results

How to display alternative content when a widget returns no results.
By default, LiveWhale displays nothing when a widget does not have any results to return. This is so that content can gracefully vanish from the page when there’s nothing relevant to display.

However, if you wish to display alternative content when a widget returns no results (such as a no results message), you may do so using the “no_results” arg. The value supplied to this arg supports XHTML content.

The no_results arg can be added to your widget in the widget editor.