0

I've got a channel in EE with a 'Google Maps for EE' fieldtype and what I'm trying to achieve is to not display the map in the template if the content editor has not added a marker to the map.

Is there a conditional or marker count available that could be used in the templates?

Running EE2.73 and Google Maps for EE 3.3.5

1 Answer 1

0

I think you can use this variable:

https://www.objectivehtml.com/google-maps/fieldtype#total_markers

Regard's.

1
  • Using total_markers was the solution but was throwing a php error. Developer fixed since. Commented May 8, 2014 at 7:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.