Hi Guys,
This is driving me nuts.
Full code is
<?php
class ProblemPage extends GardenPage
{
static $allowed_children = array("Page", "QuestionPage");
static $has_many = array (
'Problems' => 'Problem'
);
public function getCMSFields()
{
$f = parent::getCMSFields();
$f->addFieldToTab("Root.Content.Problems", new DataObjectManager(
$this,
'Problems',
'Problem',
array('Name' => 'Name','Tags' => 'Tags', 'DOMThumbnail' => 'Thumbnail'),
'getCMSFields_forPopup'
));
return $f;
}
}
class ProblemPage_Controller extends GardenPage_Controller {
}
All page types display in the dropdown and you are able to create any one of them.. the code has no effect.
I'm using the latest silverstripe version. and the code was working before!
No idea why it's not working anymore!
If anyone could help, that would be awesome!