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

0

I think you can use this variable:

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

Regard's.

| improve this answer | |
  • Using total_markers was the solution but was throwing a php error. Developer fixed since. – Micky Kelleher May 8 '14 at 7:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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