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, simon_w

Honey, I broke the CMS...


Go to End
Reply


11 Posts   1772 Views

Avatar
kiwidude95

Community Member, 25 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, 169 Posts

27 June 2013 at 5:29pm

Thanks kiwidude95 but -- no change...

Avatar
arthurdent

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