[TYPO3] Betr.: Re: Show loginform when not logged in
Tommi Rintala
tommi.rintala at lhmhakkuri.com
Tue Apr 22 11:56:14 CEST 2008
I don't know if I'm answering to your question, but I'll explain how I
did things (a bit) like this. My goal was to add some content to certain
pages,
[globalVar= GP:id=16]
lib.stuff = COA
lib.stuff.10 = IMAGE
...
later in the setup I had the template code:
[global]
lib.mainTemplate = TEMPLATE
lib.mainTemplate {
...
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_BODY
subparts.submenu < lib.stuff
}
Which meant that only in my page with id 16, the div -tag of my template
was filled with stuff what was initialized earlier.
Not very elegant, but it works.
yours,
tommi
Marieke Vandamme kirjoitti:
> 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
More information about the TYPO3-english
mailing list