[TYPO3] Question about conditions

Andreas Balzer typo3 at andreas-balzer.de
Sat Jan 6 17:36:30 CET 2007


Tyler Kraft schrieb:
> 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]
Well it works quite well until now and btw it was written by some pro's 
in the official T3 chat too.. I think it works.

Andreas


More information about the TYPO3-english mailing list