Silverstripe Version:
Question:
Hi, ive herited a site on which i have worked. The guy customized the site to the point where i cannot hover le SS logo to see which version he used.
Second, i am trying to add a Boolean button to the CMS
I have done a dev/build (no error) and a flush=all (no error).
but i get a 500 error when i click on the page thats get that code.
Here is the code :
<?php
class Page extends SiteTree {
private static $db = array(
"ShowPopup" => "Boolean"
);
private static $has_one = array(
);
public function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Main', CheckboxField::create('ShowPopup', 'Affiche popup sur la page'),'Content');
//$fields->removeByName('Content');
return $fields;
}
}
Of course, knowing which version would help!!!