Im kinda frustrated, because I made a template and I can't seem to get it right. SS keeps giving me the same error, over and over again. I've tried several "how to make a template" tutorials, and I've spoken to some dudes. But nothin' seems to work.
Ok, I wanted to have a template with 2 columns (left and right). So I made a template with the following code:
class HomePage extends SiteTree
static $db = array(
'mySubContent' => 'HTMLText'
static $defaults = array(
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Content.Main', new HtmlEditorField ( $name = "mySubContent", $title = "Sub Content" ), 'Content' );
I saved it in the code map, and after I flushed the db I really could select it. I was a happy man, until I looked at my homepage:
LINK TO MY WEBSITE: [url]http://www.marksten.nl/blog/[/url]
Somebody, help this suicidal man :p