I have a sidebar working using the following code:
class Page extends SiteTree {
static $db = array(
'Sidebarcontent' => 'HTMLText'
);
static $has_one = array(
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Content.Sidebar', new TextareaField('Sidebarcontent'), 'HTMLText');
return $fields;
}
}
This is placed in the sidebar page using $Sidebarcontent.XML
I want to be able to put images in here as well, but currently when I try this it just places the link.
Can anyone help me make the sidebar display text and images?