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.

Themes /

Discuss SilverStripe Themes.

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

Honey, I broke the CMS...


Go to End
Reply


11 Posts   2613 Views

Avatar
nzstephenf

Community Member, 55 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
arthurdent

Community Member, 188 Posts

27 June 2013 at 5:29pm

Thanks kiwidude95 but -- no change...

Avatar
arthurdent

Community Member, 188 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