Very rough idea: There is a module that allows you to select the layout page for a page. Install that and copy the layout.
Rename it authLayout. Check user.isauthenticated and redirect to login if no. Go into the layout module code and look for where layouts is populated. Add authLayout Use the authLogin layout for all pages on ur site. Dan Schlossberg www.softwaresingularity.com (m) 678.361.6960 On Jun 17, 2011, at 7:53 AM, "Gideon D'souza" <[email protected]> wrote: > In the admin panel you could goto widgets and then on the side you'll see > Layers. > > You can add content in the authenticated Layer that will show only on login. > In the default layer you can add content in any widget request the user to > login. > > Would be interesting to know how to redirect the user to the login page as > soon as he/she hits home .I wouldn't know how to do this. > > On Fri, Jun 17, 2011 at 5:16 PM, Steve Clements <[email protected]> wrote: > Hi, Thx. > > > > I mean the home page…as in I don’t want any content being displayed without > being authenticated. > > > > Thx > > Steve > > > > From: Gideon D'souza [mailto:[email protected]] > Sent: 17 June 2011 12:45 > To: [email protected] > Subject: Re: Stop Anonymous access > > > > If you are building your own module, you could decorate your Action methods > with the AuthorizeAttribute. If the url for that action is visited it will > automatically ask the user to login if he hasn't. > > > > Not sure what you mean about first page? > > > > On Fri, Jun 17, 2011 at 3:42 PM, Steve Clements <[email protected]> wrote: > > Hi, > > > > What the best solution for only allowing authenticated access to any part of > the site? > > > > I’m currently playing with permissions and widget layers? Seems like there > should be a switch somewhere and the first page is login? > > > > Thx > > Steve > > --- > You are currently subscribed to orchard-discuss as: [email protected]. > To unsubscribe send a blank email to > [email protected]. > > > > --- You are currently subscribed to orchard-discuss as: [email protected]. > To unsubscribe send a blank email to > [email protected]. > > --- > You are currently subscribed to orchard-discuss as: [email protected]. > To unsubscribe send a blank email to > [email protected]. > > --- You are currently subscribed to orchard-discuss as: > [email protected]. To unsubscribe send a blank email to > [email protected]. --- You are currently subscribed to orchard-discuss as: [email protected]. To unsubscribe send a blank email to [email protected].
