From: Timothy M. A. <ti...@ad...> - 2004-05-27 16:38:57
|
Hello, list! First off, thanks to Andreas and Teemu for the replies. They gave me a good brain-kick. I'm still a bit overwhelmed with the volume of stuff there is to OI, but I'll figure it out eventually. Yesterday, I started playing with the administration site for the project I'm working on and immediately ran into something I can't quite figure out. The design specs have my project broken into two distinct pieces: 1) the general user's site, where they can fiddle with the different settings of their account and other actions; and 2) the administration site, where my company can go in and fiddle with the users. :-) The default site has these actions combined into one site. The main reason for this is financial; we're going to have most of the credit card chargeback processing and the like on an internal web-server, firewalled off from the rest of the world. Getting down to work, I tried to remove all of the "boxes" and such from the /index.html document and create just a login box. The thing is, I can't seem to figure out how to get the user information to display anywhere other than in the user info box. I know there's something I'm just not grokking here. So, I wanted the template to do something like this pseudo-code: [%- IF user.authenticated -%] ( Display boxes ) ( Display default welcome page ) [%- ELSE -%] ( Display Login Form ) [%- END -%] The entire admin app should be locked down, requiring the user to be logged in before any page to be displayed. Any hints? Thanks! /tma |