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

Marieke Vandamme marieke.vandamme at tvh.be
Tue Apr 22 14:21:33 CEST 2008


Thanks for the hints. It's a great solution for me as I don't use the 
right column anyway.
Didn't know there was something like .slide, so I'm glad there are 
mailinglists and helpfull people out there ! 





bernd wilke <xoonsji02 at sneakemail.com> 
Verzonden door: typo3-english-bounces at lists.netfielders.de
22/04/2008 13:47
Antwoord a.u.b. aan
TYPO3 English <typo3-english at lists.netfielders.de>


Aan
typo3-english at lists.netfielders.de
Cc

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






on Tue, 22 Apr 2008 11:21:51 +0200, Marieke Vandamme wrote:

> 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."

If you want to include a login-form in this way I can imagine that you 
must configure that loginform in typoscript. 

Easier would be to include a normal content-element inserted in page- or 
list-view which will be included on every page beneath the origin.

that's the solution I use on different sites.

I use one column for this sliding. 
On every page I can get the content (of this column) of the parent-page 
or define a new one, which will be visible for this and every page 
beneath.

in typoscript I include this column like this:
page {
                 50 < styles.content.getRight
                 50.slide = -1
                 50.wrap = <div style="float:right;">|</div>
}
which will include content from column 'right' and slide it down to every 
page beneath.

In this way you can include any content element with every possible 
configuration. e.g. pages with user-records, visibility according to 
login-state, ...


If you need more columns: http://www.pi-phi.de/t3v4/45.html (in german)


bernd
-- 
http://www.pi-phi.de/t3v4/cheatsheet.html
_______________________________________________
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