mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #2745 from guttmann/patch-1
Fix error in code block for ModelAdmin documentation
This commit is contained in:
commit
1c6bea9bb5
@ -38,7 +38,7 @@ We'll name it `MyAdmin`, but the class name can be anything you want.
|
||||
class MyAdmin extends ModelAdmin {
|
||||
private static $managed_models = array('Product','Category'); // Can manage multiple models
|
||||
private static $url_segment = 'products'; // Linked as /admin/products/
|
||||
private $menu_title = 'My Product Admin';
|
||||
private static $menu_title = 'My Product Admin';
|
||||
}
|
||||
|
||||
This will automatically add a new menu entry to the CMS, and you're ready to go!
|
||||
|
Loading…
x
Reference in New Issue
Block a user