Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Menu in Admin Login Page

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

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

Page: 1
Go to End
Author Topic: 1096 Views
  • Mohan
    Avatar
    Community Member
    19 Posts

    Menu in Admin Login Page Link to this post

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

    Thanks

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Menu in Admin Login Page Link to this post

    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 %>

  • Mohan
    Avatar
    Community Member
    19 Posts

    Re: Menu in Admin Login Page Link to this post

    Will,

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

    1096 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.