[TYPO3] An exampe of usage of if-statement
Peter Klein
peter at umloud.dk
Fri Jun 9 22:41:50 CEST 2006
Hi Tapio. My reply was correct, as in your example you placed the "if" on
the TMENU/GMENU object, not the TMENUITEM/GMENUITEM (That's the "NO" part of
the menu object)
The MENUITEM got several ways you can use the "if" property as you
described. ;)
---
Peter Klein / Umloud Untd
"Tapio Markula" <tapio.markula at dnainternet.net> wrote in message
news:mailman.1.1149870467.31084.typo3-english at lists.netfielders.de...
> Peter Klein wrote:
>> Hi Tapio. I have told you this before. You need to READ the TSRef
>> correctly, otherwise you'll never learn it.
>>
>> In your example you do something like this (I assume that "1" is either a
>> TMENU or a GMENU object.):
>>
>> 1.if {
>> value.data = date:U
>> isLessThan.field = newUntil
>> negate = 0
>>
>> }
>>
>> From READING TSRef, you'll see that none of the TMENU/GMENU objects has
>> any "if" properties.
>> http://typo3.org/documentation/document-library/references/doc_core_tsref/current/view/10/1/
>> http://typo3.org/documentation/document-library/references/doc_core_tsref/current/view/10/7/
>> http://typo3.org/documentation/document-library/references/doc_core_tsref/current/view/10/4/
>>
>> So that's why your examples doesn't work..
>
> Well that is not exaclty correct answer, Peter (in general your answers
> are ok).
>
> I got this
>
> TMENUITEM has got stdWrap stdWrap2 _and_ allStdWrap
> GMENUITEM has got allStdWrap
>
> Working solution for both TMENU and GMENU:
>
> NO {
> allStdWrap.if {
> value.field = newUntil
> isGreaterThan.data = date:U
> negate = 1
> }
> }
>
> Joey (alias JoH)
More information about the TYPO3-english
mailing list