public function getFrontEndFields($params = null)
{
$fields = parent::getFrontEndFields($params);
// Create GeoData Upload field.
$upload = GeoDataUploadField::create('Image', 'Image');
// Set options to prevent selection of existing or access to the filesystem as per Silverstripe docs.
$upload->setCanAttachExisting(false);
$upload->setCanPreviewFolder(false);
$fields->replaceField('Image', $upload);
return $fields;
}
$upload = GeoDataUploadField::create(
'Image', // Name.
'Select an Image', // Title
array( // Options.
'map' => array(
'zoom' => 10
)
),
'theLatField', // Latitude field name.
'theLngField', // Longitude field name.
'theZomField' // Zoom field name.
);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.