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.

General Questions /

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

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

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


Go to End


2 Posts   2023 Views

Avatar
duskydesigns

Community Member, 15 Posts

1 April 2011 at 8:45am

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

Community Member, 15 Posts

1 April 2011 at 9:07am

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.