admin login module for content area

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
gocreative
Power Poster
Power Poster
Posts: 265
Joined: Mon Mar 14, 2011 1:16 am

Re: admin login module for content area

Post by gocreative »

It's not ideal, but you could load the login page within an iframe on your public website. If the login fails, you stay within the iframe. If it's successful (i.e. you reach the admin section), have a Javascript reload the page in the parent frame (a brief auto-refresh).

Example script to add within the </__body> of your admin template:

Code: Select all

<__script__> 
<!-- 
if (top.location.href != self.location.href)
top.location.href = self.location.href;
//--> 
</__script>
This is untested; just an idea.
Post Reply

Return to “The Lounge”