Possibly a very simple question:
I'm building my very first SilverStripe website. I'm using the default "BlackCandy" as my starting point and slowly converting the graphics and CSS to our design.
The "BlackCandy" template(s) have the "Your Site Name" and "your site's tagline here" elements within the main Page.ss file. That's fine for static content pulling information solely from that .ss file. But let's say that the site's "tagline" is something that changes quite frequently and it would be best/easiest if that was an editable text area within the CMSs Admin area.
I can see the $Content variable within the Page.ss file (which obviously pulls text from the "Content" area of the database... but I can't see how to make another area similar to $Content.
The SilverStripe online demo has a homepage has 7 separate "content" areas - "Content", "LeftBoxText", "LeftImage", "MiddleBoxText", "MiddleImage", "RightBoxText" and "RightImage".
If I wanted a "LeftBoxText" variable - how would I go about making it? I assume that it's custom made for the demo...?
I've seen something about having to add something to the Page.php file (in MySite) along the lines of:
static $db = array(
'Date' => 'Date',
'Author' => 'Text'
But i'm obviously not doing something right as that's not working for me.
Any help/advice greatly received.