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

Menu in Admin Login Page


Go to End


3 Posts   1442 Views

Avatar
Mohan

Community Member, 19 Posts

27 April 2008 at 6:57pm

Hi
Please, can anyone guide me on how to turn off the menu in admin login page.

Thanks

Avatar
Willr

Forum Moderator, 5523 Posts

27 April 2008 at 7:13pm

Edited: 27/04/2008 7:13pm

Try wrapping an if round the menu. You will need to have something unique to the login page to check it against, I used URLSegment so this will turn off the menu on any Security/ page (eg login/logout). I don't know there might be something better to check against but this probably will work fine

<% if URLSegment != Security %>
Menu Code
<% end_if %>

Avatar
Mohan

Community Member, 19 Posts

27 April 2008 at 7:56pm

Will,

Thanks for the quick reply and it worked like a charm.
Thanks a lot !!!