[TYPO3] Question about conditions
Tyler Kraft
headhunterxiii at yahoo.ca
Fri Jan 5 14:36:35 CET 2007
Hi
Maybe you should check this again as afaik you can't nest conditions
like this and achieve what your trying to do... this wont do what you
said you want. This is not a check for page 216 and no user logged in.
You can stack conditions like that though and have multiple conditions
all in a one set that then ends at once (as opposed to having to end
each condition before starting the next one. What is happening here,
according to how I understand the way conditions work, is it will check
for page 216 and if page 216 do what ever then it will check for user
logged in and do whatever, and then if no user logged in it will do what
you state.
It could also be written like this:
[globalVar = TSFE:id = 266]
...
[end]
[loginUser=*]
[else]
mainWidth = 462
contentWidth = 462
teaserbannerlayout =
[end]
hth
But thats different to a check for page 216 AND no user logged in.
Andreas Balzer wrote:
> Andreas Balzer schrieb:
>> hi!
>> I have a question about T3 conditions:
>> What condition do I have to use if i want to check in FE for pid 266
>> and no user logged in?
>> The following does not work, because it's executed if a user is logged
>> in too.
>>
>> Any idea what's wrong with it?
>>
>>
>> [globalVar = TSFE:id = 266]
>> [loginUser=*]
>> mainWidth = 462
>> contentWidth = 462
>> teaserbannerlayout =
>> [end]
>> [end]
>>
>>
>> Andreas
> solution:
>
> [globalVar = TSFE:id = 266]
> [loginUser=*]
> [else]
> mainWidth = 462
> contentWidth = 462
> teaserbannerlayout =
> [end]
> [end]
More information about the TYPO3-english
mailing list