[TYPO3] If only one sub-page

tapio tapio.markula at dnainternet.net
Wed Mar 15 20:54:39 CET 2006


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