Jump to:

5513 Posts in 1732 Topics by 1218 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Admin Login template

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

Page: 1
Go to End
Author Topic: 1254 Views
  • leafchild
    Avatar
    Community Member
    41 Posts

    Admin Login template Link to this post

    I want to change the way Admin login page looks.

    Currently, it looks not really pretty but only I can find the file that I can change looks is

    sapphire/tempalte/includes/Form.ss

    but I should NOT edit this file, right?

    Is there any way I can change admin template login without editing this file?

    Thanks

  • swaiba
    Avatar
    Forum Moderator
    1784 Posts

    Re: Admin Login template Link to this post

    yep...

    create and edit a themes\yourtheme\templates\Layout\Security_login.ss

    here is an example...

    <h1>my custom login page</h1>
    <h2>please login</h2>
    $Content
    $Form

  • leafchild
    Avatar
    Community Member
    41 Posts

    Re: Admin Login template Link to this post

    thanks swaiba,

    I created a file, \yourtheme\templates\Layout\Security_login.ss
    and wrote code exactly your example but nothing happened.

    Did I miss something?

  • swaiba
    Avatar
    Forum Moderator
    1784 Posts

    Re: Admin Login template Link to this post

    maybe...

    dev/build?flush=all

  • leafchild
    Avatar
    Community Member
    41 Posts

    Re: Admin Login template Link to this post

    thanks.

    Yes, you were right. I had to do "dev/build?flush=all"
    I didn't expected to do this.

    Thank you for your help.

  • swaiba
    Avatar
    Forum Moderator
    1784 Posts

    Re: Admin Login template Link to this post

    you should *always* expect to do at least a flush=1 when you change a *.ss file

  • leafchild
    Avatar
    Community Member
    41 Posts

    Re: Admin Login template Link to this post

    I do flush but I do this dev flush after change DB not change .ss file

  • swaiba
    Avatar
    Forum Moderator
    1784 Posts

    Re: Admin Login template Link to this post

    fair enough

    1254 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.