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.

Customising the CMS /

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

Admin Login template


Go to End


11 Posts   8673 Views

Avatar
leafchild

Community Member, 41 Posts

4 November 2011 at 9:48am

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

Avatar
swaiba

Forum Moderator, 1899 Posts

4 November 2011 at 11:37am

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

Avatar
leafchild

Community Member, 41 Posts

4 November 2011 at 12:32pm

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?

Avatar
swaiba

Forum Moderator, 1899 Posts

4 November 2011 at 12:43pm

maybe...

dev/build?flush=all

Avatar
leafchild

Community Member, 41 Posts

4 November 2011 at 12:48pm

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.

Avatar
swaiba

Forum Moderator, 1899 Posts

4 November 2011 at 12:51pm

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

Avatar
leafchild

Community Member, 41 Posts

4 November 2011 at 12:53pm

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

Avatar
swaiba

Forum Moderator, 1899 Posts

4 November 2011 at 12:55pm

fair enough

Go to Top