Jump to:

1374 Posts in 487 Topics by 520 members

Themes

SilverStripe Forums » Themes » Honey, I broke the CMS...

Discuss SilverStripe Themes.

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

Page: 1 2
Go to End
Author Topic: 1501 Views
  • kiwidude95
    Avatar
    Community Member
    25 Posts

    Re: Honey, I broke the CMS... Link to this post

    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

  • arthurdent
    Avatar
    Community Member
    153 Posts

    Re: Honey, I broke the CMS... Link to this post

    Thanks kiwidude95 but -- no change...

  • arthurdent
    Avatar
    Community Member
    153 Posts

    Re: Honey, I broke the CMS... Link to this post

    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();
       }
    }

    1501 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.