Module, Plugin



ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Phil Sturgeon


You must be logged in to post.

Conditional if feed not available

Support Request

Paul Frost
Paul Frost

I pick up event information from a third party json feed but that site has been down for days at a time occasionally. I then get support requests that my page is broken.
So I’d like to be able to add a conditional that displays a message if the feed is empty. I’ve tried testing if a value/field is empty but that doesn’t work. This is inside the rest tag pair.

{if venue==""}<p>The data is not available</p>{/if}