[TYPO3] If not

Nino Katic DELETE_MEnkatic at jagor.srce.hr
Tue Feb 5 12:37:15 CET 2008


"Mauro Lorenzutti" <mauro.lorenzutti at webformat.com> wrote in message 
news:mailman.1936.1202210653.24404.typo3-english at lists.netfielders.de...
> Hi Nino,
>
>> Hi,
>>
>> I use this:
>>
>> [globalVar = TSFE:id = 1]
>>
>> some TS
>>
>> [end]
>>
>> to simulate if pid = 1 then something
>>
>> How can i simulate if pid != 1 ?
>>
>
> Let's explain it through an example:
>
> lib.text.value = DEFAULT VALUE
>
> [globalVar = TSFE:id = 1]
> lib.text.value = CUSTOM VALUE PER UID = 1
> [end]
>
> the lib.text.value will be overwritten only if condition is true. If not, 
> the default value will be maintained.

Thx. Mauro but i think this is the same i wrote :-) I need condition where 
ID is not equal to some PID because i don't want to do some select on that 
particular page. For all other pages i need that select so this is what i 
want:

[globalVar = TSFE:id != 1]

  80 = CONTENT
  80 {
    table = tt_content
    select {
    orderBy = tstamp DESC
    selectFields = tstamp
    max = 1
   }
  }

[end]

if PID != 1 then do select and if pid == 1 then do nothing.

Nino 




More information about the TYPO3-english mailing list