Hallo!
I am would like to add a widget area in an other page as the blog.
Conditions:
Silverstripe 2.4
theme: higherground
No blog module used
MySite/Code/Page.php is:
class Page extends SiteTree {
public static $db = array(
);
public static $has_one = array(
);
// Integrate widgets area in backend...
static $has_one = array(
"SideBar" => "WidgetArea");
function getCMSFields()
{
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Content.Widgets", new WidgetAreaEditor("SideBar"));
return $fields;
}
// End Integrate widgets area in backend...
}
after a http://localhost:8888/dev/build and a http://localhost:8888/?flush=1
I get a blank page
Can any one help me???