Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Add / Remove LeftAndMain::MainMenu Items?


Reply


4 Posts   2803 Views

Avatar
nerve2

Community Member, 2 Posts

26 July 2007 at 2:01pm

What would be the best way to reconfigure the CMS Admin Menu items on 2.0.2b without replacing cms/code/LeftAndMain.php?

Tried extending LeftAndMain and creating a child method called MainMenu, but it's not being called.

Avatar
Tim

Core Development Team, 201 Posts

26 July 2007 at 10:25pm

What sort of extensions do you want to make?

Avatar
nerve2

Community Member, 2 Posts

27 July 2007 at 9:42am

In some cases I'll want to remove Newsletter and possibly Help. As far as adding, I've written a wrapper of sorts that gives me a frame, with the mainmenu and whatever third party extension. (PHPList, OpenAds, etc) The wrapper also handles logins and cookies with CURL. Was going to originally use an iframe but compatibility between browsers / platforms is too sketchy.

Avatar
Sam

Administrator, 685 Posts

28 July 2007 at 8:28am

There's some information [url=-http://doc.silverstripe.com/doku.php?id=leftandmain&s=extra%20menu%20items]on the wiki[/url] :-)