Permalink
Browse files

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
  • Loading branch information...
1 parent c65800a commit 722fc1defcac65aa7e0503bddcd852c5d57ffe9a @chillu chillu committed Nov 21, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 code/ModelAdmin.php
View
@@ -880,7 +880,7 @@ function edit($request) {
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 ;
}

0 comments on commit 722fc1d

Please sign in to comment.