[TYPO3] if.isTrue AND if.isTrue

Florian Seirer florian.seirer at tirol.gv.at
Wed May 9 11:31:26 CEST 2007


Wow, that was fast. It helped, too.

And since I didn't actually need "data" but "field" values, here's the 
code (I added the missing if as well):

10 = TEXT
10 {
     if.isTrue.field = field_x // field_y // field_z
     value = someText
}

Thanks a lot.


JoH asenau schrieb:
>>>> the following is from the gsipagenav extension, and it seems as if
>>>> it's wrong:
>>>>
>>>> <snip>
>>>>   sep = TEXT
>>>>   sep {
>>>>     value = {$plugin.gsipagenav.separator}
>>>>     if {
>>>>       isTrue.data = register:prev_pid
>>>>       isTrue.data = register:next_pid
>>>>    }
>>>>   }
>>>> <snap>
>>>>
>>>> The two "isTrue" conditions are not AND'ed, but the second one
>>>> overwrites the first one.
>>>>
>>>> However, in order to make the extension work properly, the separator
>>>> TEXT sep should only be printed if both register:prev_pid AND
>>>> register:next_pid are set. Does anyobdy know how to this can be
>>>> solved?
>>> sep = COA
>>> sep {
>>>     if {
>>>         isTrue.data = register:prev_pid
>>>     }
>>>     10 = TEXT
>>>     10 {
>>>         isTrue.data = register:next_pid
>>>         value = {$plugin.gsipagenav.separator}
>>>     }
>>> }
>>>
>> Is there a solution for if.isTrue.data = x OR if.isTrue.data = y as
>> well?
> 
> sep = TEXT
> sep {
>     isTrue.dataWrap = {register:next_pid}{register:prev_pid}
>     value = {$plugin.gsipagenav.separator}
> }
> 
> something like that?
> 
> HTH
> 
> Joey
> 


More information about the TYPO3-english mailing list