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.

Archive /

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

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

How to define a special template for the login-page


Reply


3 Posts   1818 Views

Avatar
mundgold

Community Member, 19 Posts

1 January 2008 at 12:59pm

Edited: 01/01/2008 1:01pm

Hello there,

how can I define a special template for the login (admin - Page)
or perhaps is there a condition like <% if loginpage %> that I could use in the default page.ss

I know that I can get a Login-Form in my Template with $LoginForm but in that case I would have to create a special page in the Backend with the bahaviour loginpage and i would have to create the controllers and models etc.

I need the $Form of my default Template because I use "UserDefinedForm" so I search for a possibility to control my template in case the admin-Page is requested.

Thanks Roland

Avatar
mundgold

Community Member, 19 Posts

2 January 2008 at 12:41am

Hello there - happy new year!

I solved my problem in an unconventional way:

<% if URLSegment = Security %>

perhaps there are much smarter ways - but it works for me now.

Cheers Roland

Avatar
toddm

Community Member, 15 Posts

9 October 2008 at 10:41am

This works, but is there a way to specify which .ss page to use rather than Page.ss?

Todd