Hey there anyone that can help.
I have managed to get my site up and running with custom fields and templates.
So now the only thing thats stopping me from implementing my Silverstripe site and the main reason for choosing this framework is the Translatable option.
It seems that every time I enable the:
static $extensions = array("Translatable('CustomField')");
For one or many of my custom fields I get a dramatic Fatal Error.
I have tried everything to no avail.
Can anyone help me with this?
SilverStripe ver. 2.2.1
Apache, MySQL and PHP5
Are all according to stats.
This is the code for my HomePage.php Pagetype:
<?php
class HomePage extends SiteTree {
static $db = array(
'Slogan' => 'Varchar'
);
//This is the code I insert that causes all the problems
static $extensions = array(
"Translatable('Slogan')"
);
static $has_one = array(
);
static $defaults = array(
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Content.Main', new TextField('Slogan', 'The slogan text under the rummy royal logo:'), 'Content');
return $fields;
}
}
class HomePage_Controller extends ContentController {
function init() {
parent::init();
Requirements::themedCSS("RummyStyle");
}
}
?>
I attached the error page to this post as well.