Hi, i'm working on my HomePage pagetyp and wondering how to make the datafields i added translateable. I'm new to silverstripe and took a look to the tutorials, but i feel that i dont really get the sense of it.
This is my code so far (HomePage.php):
class HomePage extends Page {
static $db = array(
'Name1' => 'Varchar(20)'
);
static $has_one = array(
);
static $icon = "mysite/images/treeicons/home";
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->removeFieldFromTab("Root.Content.Main","Content");
$fields->addFieldToTab('Root.Content.Main', new TextField('Name1'), 'Content');
return $fields;
}
Can anybody help?