Feature #16855
closedAdd stdWrap to TMENU/GMENU
0%
Description
TMENU/GMENU just accept a normal wrap on that level. It's not possible to to wrap the whole level with other functions, like dataWrap to integrate fields, registers, and whatever.
So this is a feature request to enable stdWrap for TMENU/GMENU.
Example:
10 = HMENU
10 {
...
1 = TMENU
1 {
stdWrap.dataWrap = <ul class="menu {register:currentClass}">|</ul>
NO = 1
NO.allWrap = <li>|</li>
}
}
(issue imported from #M4780)
Files
Updated by Oliver Hader almost 18 years ago
Please have a look to the small patch, which enables to use stdWrap for TMENU/GMENU.
The file 0004780.typoscript.txt shows, how the menu is generated and how the stdWrap.dataWrap is used for the second menu-level ("2 = TMENU") which uses register-data that was set by the first menu-level.
You can see the results on a website in development: http://wsv.t3ip.de/
The functionality this report is about, was used in the horizontal main-menu ("Starseite", "Wintersport", etc.).
So this makes it possible to have individual setting for sub-menus (children), depending on the parent-menu.