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

448 Views

Avatar
vwd

31 October 2011 at 4:57pm Community Member, 159 Posts

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.