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   2757 Views

Avatar
nerve2

26 July 2007 at 2:01pm Community Member, 2 Posts

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

26 July 2007 at 10:25pm Core Development Team, 201 Posts

What sort of extensions do you want to make?

Avatar
nerve2

27 July 2007 at 9:42am Community Member, 2 Posts

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

28 July 2007 at 8:28am Administrator, 685 Posts

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