3214 Posts in 848 Topics by 810 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1208 Views |
-
How to detect cms login page

30 August 2010 at 8:11pm
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 -
Re: How to detect cms login page

30 August 2010 at 9:35pm
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.
-
Re: How to detect cms login page

30 August 2010 at 9:52pm
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 .. %>
-
Re: How to detect cms login page

9 October 2010 at 3:03am
Security pages have an ID=0 which i think I've used as a hacky way of manipulating their templates in the past
-
Re: How to detect cms login page

9 October 2010 at 10:37am
You can also use classname = <% if ClassName = Security %>
| 1208 Views | ||
|
Page:
1
|
Go to Top |



