Skip to content

Instantly share code, notes, and snippets.

@ss23
Created March 16, 2013 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ss23/5175869 to your computer and use it in GitHub Desktop.
Save ss23/5175869 to your computer and use it in GitHub Desktop.
<?php
class GoogleMaps extends DataExtension {
static $db = array(
'Latitude' => 'Varchar',
'Longitude' => 'Varchar',
);
public function updateCMSFields(FieldList $fields) {
$fields->push(new NumericField('Latitude'));
$fields->push(new NumericField('Longitude'));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment