5121 Posts in 1527 Topics by 1119 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1623 Views |
-
ModelAdmin Tab labels for left hand menu

26 November 2009 at 11:33am
Heya,
Ive looked about a bit but cant see anything in particular about this. Is it possible to control the label that appears in the tabs for the managed_models?
public static $managed_models = array(
'ModelExample'
);would create a tab labeled Model Example, but what if I wanted to manually specify what the tab label should be?
Cheers
-
Re: ModelAdmin Tab labels for left hand menu

26 November 2009 at 12:48pm
The name of the object is held in the object as the $singular_name and $plural_name.
So in your case, your ModelExample class should have:
class ModelExample extends DataObject {
static $singular_name = "Nice Name";
static $plural_name = "Nice Names";
...
-
Re: ModelAdmin Tab labels for left hand menu

14 December 2009 at 8:49am
That about make $singular_name and $plural_name translateable?
| 1623 Views | ||
|
Page:
1
|
Go to Top |



