[TYPO3-german] Re: Anschub gesucht: Submenu mit Bootstrap
Ralph Becker
ralph.becker at awo-ol.de
Wed Feb 14 13:52:52 CET 2018
Hallo,
ich hab das mal mit Typoscript für Bootstrap4 gemacht:
lib.sidebarBS4 = COA
lib.sidebarBS4 {
20 = HMENU
20{
special = directory
special.value = 4
1 = TMENU
1{
expAll = 1
wrap = <ul class="nav bg-success text-white rounded flex-column flex-nowrap">|</ul>
NO = 1
NO {
wrapItemAndSub= <li class="nav-item" id="menu{field:uid}">|</li>
wrapItemAndSub.insertData=1
ATagParams = class="nav-link bg-success" role="button"
ATagParams.insertData = 1
ATagBeforeWrap = 1
linkWrap = |
}
IFSUB = 1
IFSUB.ATagParams = class="nav-link dropdown-toggle bg-success collapsed" role="button" data-target="#sub{field:uid}" data-toggle="collapse"
IFSUB.ATagParams.insertData = 1
IFSUB.ATagBeforeWrap = 1
IFSUB.linkWrap = |
IFSUB.wrapItemAndSub.insertData = 1
IFSUB.wrapItemAndSub= <li class="nav-item" id="submenu{field:uid}">|</li>
IFSUB.wrapItemAndSub.insertData=1
}
2 = TMENU
2{
stdWrap.outerWrap = |</ul></div>
stdWrap.outerWrap.stdWrap.prepend = TEXT
stdWrap.outerWrap.stdWrap.prepend.field= pid
stdWrap.outerWrap.stdWrap.prepend.wrap = <div class="collapse bg-success" aria-expanded="false" id="sub|"><ul class="flex-column pl-2 nav " >
stdWrap.wrap = |
NO = 1
NO{
wrapItemAndSub= <li class="menu{field:uid}" id="menu{field:uid}">|</li>
wrapItemAndSub.insertData=1
ATagParams = class="bg-success"
ATagBeforeWrap = 1
linkWrap = |
}
}
}
}
Vielleicht hilft das ja.
More information about the TYPO3-german
mailing list