mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
MINOR Reverted accidental commit from r79279
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.3@79330 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
9488dd219c
commit
64607059e2
@ -4,7 +4,7 @@ global $project;
|
||||
$project = 'mysite';
|
||||
|
||||
global $database;
|
||||
$database = "SS_phpinstaller_23";
|
||||
$database = "";
|
||||
|
||||
require_once("conf/ConfigureFromEnv.php");
|
||||
|
||||
@ -12,5 +12,4 @@ require_once("conf/ConfigureFromEnv.php");
|
||||
// downloaded from http://www.silverstripe.com/themes/
|
||||
SSViewer::set_theme('blackcandy');
|
||||
|
||||
//Object::add_extension('SiteTree', 'Translatable');
|
||||
?>
|
@ -2,30 +2,12 @@
|
||||
|
||||
class Page extends SiteTree {
|
||||
|
||||
static $api_access = true;
|
||||
|
||||
public static $db = array(
|
||||
'AdditionalProperty' => 'Text',
|
||||
);
|
||||
|
||||
public static $has_one = array(
|
||||
);
|
||||
|
||||
function getCMSFields() {
|
||||
$fields = parent::getCMSFields();
|
||||
|
||||
if($this->hasExtension('Translatable')) {
|
||||
$translation = $this->getTranslation(Translatable::default_locale());
|
||||
$transformation = new Translatable_Transformation($translation);
|
||||
$additionalField = $transformation->transformFormField(
|
||||
new TextField('AdditionalProperty')
|
||||
);
|
||||
$fields->addFieldToTab('Root.Content.Main', $additionalField);
|
||||
}
|
||||
|
||||
return $fields;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class Page_Controller extends ContentController {
|
||||
|
Loading…
Reference in New Issue
Block a user