$classes ); $stage = isset($params['OnLive']) ? 'Live' : 'Stage'; return Versioned::get_by_stage('SilverStripe\\CMS\\Model\\SiteTree', $stage, $classFilter); } public function columns() { return array( "Title" => array( "title" => "Title", // todo: use NestedTitle(2) "link" => true, ), ); } public function getParameterFields() { return new FieldList( new CheckboxField('OnLive', _t(__CLASS__.'.ParameterLiveCheckbox', 'Check live site')) ); } }