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

Dmitry Dulepov [typo3] dmitry at typo3.org
Tue Apr 22 12:28:40 CEST 2008


Marieke Vandamme wrote:
> So, I'm using following code now :
> 
> [usergroup=*]
> # Copying the content from TEMPLATE for <body>-section:
> page.10 < temp.mainTemplate
> # Copying the content from TEMPLATE for <head>-section:
> page.headerData.10 < temp.headTemplate 
> [else]
> page.10 = CAO
> page.10 < styles.content.loginform
> [global]
> 
> But the loginform isn't showing. Isn't "styles.content.loginform" the way 
> to print the default CType Login with TS? 
> What I need is a check on all my pages (so I put that in my template) to 
> see if my user is logged in.
> If user is not logged in, I want to display the default loginform. Or do I 
> need to use some redirect thingy ?

I would go to TypoScript Object browser in Web>Template and see what you get at page.10 and styles.content.loginform.

-- 
Dmitry Dulepov
TYPO3 core team
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"Nothing is impossible. There are only limits to our knowledge"


More information about the TYPO3-english mailing list