Skip to main content
Topic: Custom Field Link (Read 1482 times) previous topic - next topic

Custom Field Link

Hi.

I have two fields, latitude and longitude.  I have created a custom field coordinates by using CONCAT(latitude,',', longitude) in order to display one coordinate field instead of two separate fields.
I want to insert this coordinate value into a custom Google Maps link.

Say we have the following latitude: 28.385139; and this longitude: 81.563831;  we get the coordinates:  28.385139,81.563831.

What I cant seem to get right is to insert the coordinates into a Field Link in the format http://maps.google.com/?ll=28.385139,81.563831

How do I go about inserting the current field value into the link?

Thanks!

 

Re: Custom Field Link

Reply #1
@Brollox‍ set coordinates field DisplayType as custom and add the following.

Code: [Select]
<a href=" http://maps.google.com/?ll=<?php echo $data['coordinates']; ?>" >View Coordinate on google map</a>