public function getCMSFields()
 {
     $f = parent::getCMSFields();
     $f->addFieldToTab('Root.Main', new TextField('Link', 'Slide Link'));
     $f->addFieldToTab('Root.Main', $upload = new UploadField('Slide', 'Slide File'));
     $upload->setAllowedMaxFileNumber(1);
     return $f;
 }
 public function getCMSFields()
 {
     $f = parent::getCMSFields();
     $f->removeByName('Description');
     $f->removeByName('Featured');
     $f->addFieldToTab('Root.Main', new TextField('Link', 'Link'));
     return $f;
 }
 /**
  * @return FieldList
  */
 public function getCMSFields()
 {
     $f = parent::getCMSFields();
     $f->addFieldToTab('Root.Main', new TextField('Link', 'Slide Link'));
     $f->addFieldToTab('Root.Main', $upload_field = new UploadField('Slide', 'Slide File'));
     $upload_field->setAllowedMaxFileNumber(1);
     $upload_field->getValidator()->setAllowedMaxFileSize(array('*' => 5 * 1024 * 1024));
     $upload_field->setFolderName(sprintf('summits/%s/presentations/%s/slides/', $_REQUEST['SummitID'], $_REQUEST['SummitEventID']));
     return $f;
 }
 /**
  * @return FieldList
  */
 public function getCMSFields()
 {
     $f = parent::getCMSFields();
     $f->addFieldToTab('Root.Main', new CheckboxField('Highlighted'), 'Description');
     $f->addFieldToTab('Root.Main', new ReadonlyField('Views'), 'Description');
     $f->addFieldToTab('Root.Main', new TextField('YouTubeID', 'YouTube ID'), 'Description');
     $f->addFieldToTab('Root.Main', new CheckboxField('Processed'), 'Description');
     $f->addFieldToTab('Root.Main', new ReadonlyField('DateUploaded'));
     $f->addFieldToTab('Root.Main', new ReadonlyField('Views'));
     $f->addFieldToTab('Root.Main', new ReadonlyField('PresentationTitle', 'Presentation title', $this->Presentation()->Title));
     return $f;
 }
 public function getCMSFields()
 {
     $f = parent::getCMSFields();
     $f->addFieldToTab('Root.Main', new TextField('YouTubeID', 'YouTube ID'));
     return $f;
 }