[TYPO3-english] Wrapping

Tomas Mrozek mail at cascaval.com
Fri Apr 29 15:19:10 CEST 2011


> The problem is, if sub menu exists then <li> should not be closed and
> next <ul> should be started.

Well, that's why you are using "wrapItemAndSub" property, isn't it? It
wraps the item plus any submenus. However, you have made few mistakes in
the setup.

Try this:

MENU = HMENU
MENU {
  entryLevel = 0

  # First level
  1 = TMENU
  1 {
    wrap = <ul>|</ul>

    NO {
      allWrap = <li>|</li>
    }

    IFSUB = 1
    IFSUB {
      wrapItemAndSub = <li class="submenu">|</li>
    }
  }

  # Second level
  2 = TMENU
  2 {
    wrap = <ul>|</ul>

    NO {
      allWrap = <li>|</li>
    }

    IFSUB = 1
    IFSUB {
      wrapItemAndSub = <li class="submenu_inn">|</li>
    }
  }
}

Tomas Mrozek


More information about the TYPO3-english mailing list