secret
Created

  • Download Gist
gistfile1.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<?php
class TeamPage extends Page {
private static $db = array(
);
private static $has_one = array(
'Photo' => 'Image'
);
public function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Main", new UploadField('Photo'),'Content');
return $fields;
}
}
class TeamPage_Controller extends Page_Controller {
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.