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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

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

Admin Login template


Go to End


11 Posts   4500 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