[TYPO3] Betr.: Re: Show loginform when not logged in

Marieke Vandamme marieke.vandamme at tvh.be
Tue Apr 22 11:50:09 CEST 2008


Thanks for the answer, but when I use : 

[usergroup=*]
 page.10 < temp.mainTemplate
 page.headerData.10 < temp.headTemplate 
[else]
 page.10 = TEXT
 page.10.value = Hello?
[usergroup]

the 'Hello?' is printed on my page. So I don't think the [else] is the 
problem..
The only thing I don't know is how to print the loginform on every page 
when the user is not logged in. 
All my pages of intranet are restricted and can only be viewed when logged 
in.
Should I then maybe redirect the user to a different page of my website 
with a login form? But how do I do that?
I found something "typolinkLinkAccessRestrictedPages" but I don't know how 
to use it...

Marieke.





Tommi Rintala <tommi.rintala at lhmhakkuri.com> 
Verzonden door: typo3-english-bounces at lists.netfielders.de
22/04/2008 11:39
Antwoord a.u.b. aan
TYPO3 English <typo3-english at lists.netfielders.de>


Aan
TYPO3 English <typo3-english at lists.netfielders.de>
Cc

Onderwerp
Re: [TYPO3] Show loginform when not logged in







I believe, according the TSref that 'else' is not a valid section. Or at
least it does not correspond to previous usergroup (sections are not
equivalent to if/else -structures)

Perhaps you should give a 'global' section with defaults and add
'usergroup=1,2,...' for those in question.

Or I might also be misguided.

yours,

Tommi

Marieke Vandamme kirjoitti:
> Hello, 
> 
> I want my fe users to view a loginform when they are not logged in into 
my 
> intranet.
> I added the folowing to the TS Setup of my main template:
> 
> page = PAGE
> page.typeNum = 0
> [usergroup=*]
> page.10 < temp.mainTemplate
> page.headerData.10 < temp.headTemplate 
> [else]
> page.10 < styles.content.loginform
> [usergroup]
> 
> But when the user isn't logged in I just see a blank page. The loginform 

> isn't showing. 
> What am I doing wrong? Thanks for the help !
> **** DISCLAIMER ****
> <A HREF="http://www.tvh.be/newen/pages/emaildisclaimer.html">
> http://www.tvh.be/newen/pages/emaildisclaimer.html </A>
> 
> "This message is delivered to all addressees subject to the conditions
> set forth in the attached disclaimer, which is an integral part of this
> message."
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english


-- 
  Tommi Rintala      web:  http://www.lhmhakkuri.com/
  LHM Hakkuri Oy     gsm:  +358 400 367 019  gsm-fax: +358 401 107 222
  Ylistönmäentie 26  fax:  +358 14 445 1455
  40500 Jyväskylä    email: tommi.rintala at lhmhakkuri.com
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english

**** DISCLAIMER ****
<A HREF="http://www.tvh.be/newen/pages/emaildisclaimer.html">
http://www.tvh.be/newen/pages/emaildisclaimer.html </A>

"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."


More information about the TYPO3-english mailing list