Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

Display Longtitude/Latitude in CMS (using Addressable/Geocodable)


Reply


528 Views

Avatar
vwd

Community Member, 160 Posts

31 October 2011 at 4:57pm

Hi,

I'm experimenting with the [url=https://github.com/ajshort/silverstripe-addressable]Addressable module[/url] and would like to display the Longitude and Latitude fields that have been found.

I would like to display the Latitude and Longitude as read-only text fields if the address lookup succeeded. And if the look-up failed, to enable the text fields for manual input.

Also, is it possible to create a "Refresh Look-up" button that will call the GoogleGeocoding::address_to_point(...) upon button-press? How would one implement this in the CMS?

Thank you very much.

VWD.