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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Add / Remove LeftAndMain::MainMenu Items?


Go to End


4 Posts   3599 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

Community Member, 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, 690 Posts

28 July 2007 at 8:28am