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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Themes /

Discuss SilverStripe Themes.

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

Honey, I broke the CMS...


Go to End


11 Posts   4903 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