public function updateCMSFields(FieldList $fields)
 {
     $fields->removeByName('Access');
     // if(!Permission::check("ADMIN")) {
     // $fields->removeByName('Them  e');
     // }
     $fields->addFieldToTab("Root.Main", $resume = FileAttachmentField::create('Resume', 'Upload resume')->setAcceptedFiles(array('.pdf'))->setThumbnailHeight(200)->setThumbnailWidth(200)->setAutoProcessQueue(true)->setMaxFilesize(10));
     $fields->tab('Main')->text("Unions")->text("ImdbURL")->text("ActorsAccessURL")->tab('Social')->text("FacebookURL")->text("TwitterURL")->text("InstagramURL")->text("PinterestURL")->text("VimeoURL")->text("SoundCloudURL")->text("YouTubeURL", "Enter the full URL of your YouTube channel")->tab('Contact')->text("Phone")->email("Email")->textarea("Address");
 }
Esempio n. 2
0
 public function updateCMSFields(FieldList $fields)
 {
     $fields->tab("Publish")->dateTime("PublicationDate")->configure()->setConfig('dmyplaceholders', 'true')->end()->dateTime("ExpirationDate")->configure()->setConfig('dmyplaceholders', 'true')->end()->checkbox("Published");
 }