[Typo3] tmenu how to count levels

Henry Wilhelm henry at hexhe.de
Tue Sep 27 16:46:54 CEST 2005


Hi, all,
i have a menu with max. 4 levels.
Now i want to wrap menus with 3 levels or less with an other div-class 
than menus with 4 levels.
Is it possible with TS to check how many sublevels a main level menu 
has? And could anybody give an example how to do this?
my menu looks like this:
Menu 1
...Menu 1.1
......Menu 1.1.1
.........Menu 1.1.1.1
Menu 2
...Menu 2.1
......Menu 2.1.1
Menu 3
...Menu 3.1
......Menu 3.1.1
.........Menu 3.1.1.1

Menu 1 and submenus should be wrapped with <div class="menu4levels">|</div>
Menu 2 and submenus should be wrapped with <div class="menu3levels">|</div>

Any ideas?

thanks a lot

-- 
Grüße von

Henry Wilhelm
Zenettistr. 38
80337 München
Tel.: +49 89 74 74 63 81
Fax: +49 89 74 74 63 82
email: henry at hexhe.de

»Wehe! Ewig undurchsichtig 
Sind die ewigen Gesetze 
Der menschlichen Wirtschaft! 
[...] 
Niemand benachrichtigt, niemand im Bilde! Aber den letzten 
Beißen die Hunde!«




More information about the TYPO3-english mailing list