Typoscript navigation with subpages

后端 未结 3 483
囚心锁ツ
囚心锁ツ 2021-01-20 14:07

I am trying to implement my navigation with typoscript and I am having problems to understand how to wrap right.

I already have a base navigation with 1 level that i

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-20 14:50

    The option noBlur is removed since TYPO3 v6.0 and I read somewhere, that the RO state does something with javascript to show/hide the submenu - so I try not to use it. I rather do the showing/hiding via css.

    I would've done it like this:

    lib.menu = HMENU
    lib.menu {
        special = list
        special.value = 3,2
    
        1 = TMENU
        1 {
            expAll = 1
            wrap = 
    
            NO.wrapItemAndSub = 
  • |
  • CUR = 1 CUR.wrapItemAndSub =
  • |
  • ACT < .CUR } 2 = TMENU 2 { wrap =
      |
    NO = 1 NO.wrapItemAndSub =
  • |
  • } }

    Add the hover-effect via CSS:

    .nav ul {
        display: none;
    }
    .nav li:hover ul {
        display: block;
    }
    

提交回复
热议问题