[TYPO3] If only one sub-page

Peter Klein peter at umloud.dk
Wed Mar 15 22:03:24 CET 2006


Hi Tapio. You really should try reading TSref.. In this case the chapter 
describing the "if" property.
http://typo3.org/documentation/document-library/references/doc_core_tsref/current/view/5/7/

You can't set "value >1" as it doesn't work that way. But you could use the 
"isGreaterThan" property to get what you want.

---
Petr Klein / Umloud Untd


"tapio" <tapio.markula at dnainternet.net> wrote in message 
news:mailman.1.1142452590.2274.typo3-english at lists.netfielders.de...
> Peter Klein wrote:
>> Hi tapio. Try changing the
>>
>>    10.if.isTrue.numRows {
>>      table=pages
>>      select.pidInList.data = uid
>>    }
>>
>> into
>>
>>    10.if.value = 1
>>    10.if.equals.numRows {
>>      table=pages
>>      select.pidInList.data = uid
>>    }
>>
>> ---
>> Peter Klein / Umloud Untd
>
> I got the problem solved setting for parent menu items into states 
> ACTIFSUB and CURIFSUB bottom margin (I added for them a class) and
> top-margin from the 'firstItem' as zero.
>
> But that doesn't work necessarily in all situations.
> I might need this kind of solution for menu level
>
> I would need alternative solution for some menu levels, for example
>
> temp.menu_1 = HMENU
>   # First level menu-object, textual
> temp.menu_1.1 = TMENU
> temp.menu_1.1 {
> ...
>
> # needed in this level and maybe one step lower
>
> temp.menu_1.2 = TMENU
> temp.menu_1.2 {
>
> If I must make the whole menu twice, not very handy.
> And I shoud put alternatives somewhat inside {... }
>
> 10.if.value = 1
>    10.if.equals.numRows {
>       table=pages
>       select.pidInList.data = uid
> }
>
> Doesn't put *all* menubuinding inside a condition
>
>
> These didn't work
>
> temp.menu_1.2 = TMENU
> temp.menu_1.2.if.value > 1
>  temp.menu_1.2.if.equals.numRows {
>   table=pages
>   select.pidInList.data = uid
>
> NO=1
>>
>
>
>
> temp.menu_1.2.if.value = 1
>  temp.menu_1.2.if.equals.numRows {
>      table=pages
>      select.pidInList.data = uid
>
> NO=1
> ... 





More information about the TYPO3-english mailing list