studioespresso / craft-easyaddressfield

Easy Address Field is the easiest way to add an address to your entries. Enable the fields you want for the address, automatically get the coordinates for an address and place the marker exactly where you want it.
https://plugins.craftcms.com/easy-address-field
Other
3 stars 3 forks source link

How to get address? #2

Closed atimoda closed 6 years ago

atimoda commented 6 years ago

Cold not find how to get the address data in templates, like "street" name or any other address field.

Would expect something like: {{ addressFieldHandle.street1 }} (return only one specific field) {{ addressFieldHandle.getAddress }} (return all the data in one string)

janhenckens commented 6 years ago

Hey

The single field should work like this entry.addressFieldHandle.street. The plugin currently does not have a getAddress option, I could add that in a following update.

tcherokee commented 6 years ago

Plus one for getting the address