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.

Archive /

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

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

Admin Login form not using Page template


Go to End


2 Posts   6190 Views

Avatar
toddm

Community Member, 15 Posts

10 October 2008 at 9:39am

Hi,
Due to design of site, I'd like to avoid using Page.ss template for the admin login. Is this possible?

In Security.php, I see:

		// custom processing
		if(SSViewer::hasTemplate("Security_login")) {
			return $customisedController->renderWith(array("Security_login", "Page"));
		} else {
			return $customisedController->renderWith("Page");
		}

Does this mean it has to be the Page template?

Sorry if I'm missing something obvious.

Todd

Avatar
bummzack

Community Member, 904 Posts

10 October 2008 at 10:00am

You can create a template named Security_login.ss. It will be used as template then. If it doesn't exist, Page.ss will be used.
Make sure you enter the $Form placeholder in the template, otherwise your login form won't be shown.