5099 Posts in 1519 Topics by 1116 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 648 Views |
-
Extending LeftAndMain 101

19 May 2011 at 9:30pm
I'm starting to look at extending LeftAndMain and found the documentation here: http://doc.silverstripe.org/sapphire/en/reference/leftandmain
I thought that adding this http://pastie.org/1925934 would at least give me the menu item My Admin in the CMS, but it doesn't even seem to do that. Can soemeone point me in the right direction?
-
Re: Extending LeftAndMain 101

19 May 2011 at 9:44pm
I start with the following and build it up step by step...
<?php
class CustomAdmin extends LeftAndMain {
static $url_segment = 'custadmin';
static $menu_title = 'Custom';
static $menu_priority = -2;
}then also create two templates...
CustomAdmin_left.ss
CustomAdmin_right.ss -
Re: Extending LeftAndMain 101

20 May 2011 at 12:21am
I Feel really stupid now :O
I forgot to add a _config.php to my folder. Thanks for the help.
-
Re: Extending LeftAndMain 101

24 May 2011 at 9:05pm
Alright, made something really simple (attached), before diving further into the ins and outs of LeftAndMain. There are probably a lot of things I can do easier with LeftAndMain functionality.
If you have further tips, or see things that are a really bad idea, please let me know.
| 648 Views | ||
|
Page:
1
|
Go to Top |


