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.
I use for logging to cms page site.com/admin. It uses my page template, however I'd like to remove some elements in this login page.
I tried following two with no luck
<% if LoginForm %>
<% if URLSegment == admin %>
Any ideas? I'd prefer not to override Page.ss with LoginPage.ss
Using SS 2.4.1
The default login / logout screens are part of the Security controller so you can make a Security.ss file to override the Page.ss styles.
Thanks, it's good to know.
However is it possible to detect it via any property. I'm looking for something like
<% if Security %><% include .. %>
Security pages have an ID=0 which i think I've used as a hacky way of manipulating their templates in the past
You can also use classname = <% if ClassName = Security %>
Anyway to do this in 3.x ?
I'll just leave this here...
<% if URLSegment == Security %>