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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page.php not working anymore, can't get new CMSFields added


Reply

2 Posts   1260 Views

Avatar
duskydesigns

1 April 2011 at 8:45am Community Member, 15 Posts

For some annoying reason my Page.php stopped working properly, im unsure why its doing this but i am unable to add tabs to the basic pages and all that follow. Its just not working..

It sucks since my deadline is tommorow and right now it decides to go buggy..i dunno what went wrong, could be that its extended in homepage but i doubt it.

Heres the code:

public static $db = array(
      
      'ColumnRight' => 'HTMLText',
   );

   public static $has_one = array(
   );

}

function getCMSFields() {
$fields = parent::getCMSFields();

      $fields->addFieldToTab("Root.Content.Main", new HTMLEditorField('ColumnRight','Column rechts inhoud'));
return $fields;
}

Avatar
duskydesigns

1 April 2011 at 9:07am Community Member, 15 Posts

Ok, anyone else ever getting similar stuff and who has a Mac OSX 10.6 operating system with XAMPP.. That is the problem. Live it works just offline it refuses to update.

Also issues with this OS, at least from me:
- Only able to enter admin in localhost by adding ?isDev=1 to prevent forever loading screen
- Images just do not work, the path is always wrong.