[TYPO3] Redirect if you're not logged in

Sergio Catalá scatala at iti.upv.es
Thu May 15 09:52:15 CEST 2008


Thank you for your advices.

I finally thought something easier: (1) insert into the page the
restricted content element with the option "Show with any session" in
the Access section, and (2) insert into the same page a login box with
the option "Don't show if there's a session". This way only one of the
content elements is shown depending if the user is logged in or not. 

Anyway, my problem goes beyond this: the content element I want to
restrict is a news article so when I log in with the login box (from
"loginbox_macmade" extension), I loose the POST parameters in the URL
and I'm given the typical "no news id" error. 

Does anyone know how I could keep these parameters after being logged
in?

Thanks, 
Sergio 
 

El mié, 14-05-2008 a las 20:41 +0300, Panagiotis Kontaxis escribió:
> install beko_improved_login extension. It automatically redirects the user
> to login page if he requests a page which requires login.
> 
> 2008/5/14 Erik Svendsen <erik at linnearad.no>:
> 
> > Hello Sergio,
> >
> > > Hi,
> > >
> > > I would like to show a specific content element ONLY if you're logged
> > > in the FE. I can do that in the "General options" section inside the
> > > content element, but my interest would be: redirect to a specific page
> > > that allows you to log in if you're not. I'm only able to hide the
> > > content element.
> > >
> > > Does anyone know the way to do that?
> > >
> > > Thanks, Sergio
> > >
> >
> > Look in TER (Extension repository). I think there are some extensions which
> > may solve that problem. But probably they only work on the page level.
> >
> > But as I understand, a not logged in user which try to open the page with
> > this content element on, should be redirected to the login page. You could
> > probably use conditions in an ext template on the page to achive this, read
> > in TSref.
> >
> >
> > WBR,
> > Erik Svendsen
> > www.linnearad.no
> >
> >
> > _______________________________________________
> > TYPO3-english mailing list
> > TYPO3-english at lists.netfielders.de
> > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> >
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list