You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to wrap an if statement around my maps code so that a blank map doesn't show up when there are no locations plotted. With 'blogLocations' being my custom field handle, I've tried these with no luck:
{% if entry.blogLocations is not null %}
{% if not entry.blogLocations|length %}
{% if not entry.blogLocations.total() %}
{% if entry.blogLocations is empty %}
{% if entry.blogLocations %}
What is the syntax for checking my field for no results??
The text was updated successfully, but these errors were encountered:
I'm attempting to wrap an if statement around my maps code so that a blank map doesn't show up when there are no locations plotted. With 'blogLocations' being my custom field handle, I've tried these with no luck:
What is the syntax for checking my field for no results??
The text was updated successfully, but these errors were encountered: