ENHANCEMENT Allowing ModelAdmin to be rendered with different *_right.ss templates based on the class name

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92761 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-11-21 03:17:21 +00:00
parent c65800aa57
commit 722fc1defc

View File

@ -880,7 +880,7 @@ class ModelAdmin_RecordController extends Controller {
return $this->parentController->parentController->customise(array(
'Right' => $this->parentController->parentController->customise(array(
'EditForm' => $this->EditForm()
))->renderWith('ModelAdmin_right')
))->renderWith(array("{$this->class}_right",'LeftAndMain_right'))
))->renderWith(array('ModelAdmin','LeftAndMain'));
return ;
}