Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Themes /

Discuss SilverStripe Themes.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Honey, I broke the CMS...


Go to End


11 Posts   3873 Views

Avatar
nzstephenf

Community Member, 63 Posts

26 June 2013 at 7:46pm

If it's no bother. Try [a href="http://www.silverstripe.org/stable-download/"]downloading[/a] the latest SilverStripe version again. And see what happens :)

Avatar
mhdesign

Community Member, 216 Posts

27 June 2013 at 5:29pm

Thanks kiwidude95 but -- no change...

Avatar
mhdesign

Community Member, 216 Posts

29 June 2013 at 4:43pm

Cracked it! There mush have been a random space somewhere in page.php (dunno where but anyway)...

For the record correct page.php is:

<?php
class Page extends SiteTree {
	public static $db = array(
							  'SidebarHTML' => 'HTMLText'
							  );
	public static $has_one = array(
								   );
	function getCMSFields() {
		$fields = parent::getCMSFields();
		$fields -> addFieldToTab("Root.Sidebar",new HTMLEditorField("SidebarHTML"));
		return $fields;
	}
}
class Page_Controller extends ContentController {
	public static $allowed_actions = array(
	);

	public function init() {
		parent::init();
	}
}

Go to Top