How to customize Silverstripe login page content?

Viewed 1759

I'm using SilverStripe 3.5.3 I want to customize content ($Content) of the Security/login page. How do I do it?

3 Answers

I know the OP asked specifically for its theme, but in case someone wants to know how to do it on the code side of things, you can use the request object to determine that, like this:

/mysite/code/Page.php

public function anyMethod() {

    $value = 'default';

    if (Controller::curr()->getRequest()->getURL() === 'Security/login') {
        $value = 'something else';
    }

    return $value;
}

(On SilverStripe 4.1.0, anyway)

Related