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??
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??