Hi, I'm wondering if anyone can help.
I've downloaded silverstripe and putting together a simple CMS for a client (a good way of testing it). Currently I think it's really good, but I'm a little stuck at trying to create a multi-column layout for the home-page.
I have Page.css which holds the main theme, which is split into subtemplates /Layout/ Page.ss and HomePage.ss
I also have a mysite/code/HomePage.php - which is where I'm struggling. Getting that working was fine, but trying to add in a multi-column layout for home is being a bit of a pita.
In home, I currently have:
<?php
/**
* Defines the HomePage page type
*/
class HomePage extends Page {
static $db = array(
'ColumnOne' => 'HTMLText',
'ColumnTwo' => 'HTMLText'
);
static $has_one = array(
$fields->addFieldToTab("Root.Content.ColumnOne", new HTMLEditorField('ColumnOne','Column One Content'));
$fields->addFieldToTab("Root.Content.ColumnTwo", new HTMLEditorField('ColumnTwo','Column Two Content'));
);
}
class HomePage_Controller extends Page_Controller {
}
?>
But is giving the error:
Parse error: parse error, expecting `')'' in D:\clients\cogocreative\domains\dev.silverstripe\mysite\code\HomePage.php on line 12
Does anyone know what I'm doing wrong?