[TYPO3-german] TMENU variable class
Lutz Eckelmann
leckelmann at gmx.de
Sat Oct 4 15:34:45 CEST 2008
Hallo Liste,
also ich habe so meine Probleme ein TMENU zusammen zustellen.
Es soll bei der Ausgabe so aussehen:
<ul class=nav>
<div class="submenu_top"></div>
<li class="nav1_passiv">
<div class="submenu_middle">
<a href="">Link 1</a>
</div>
<div class="submenu_img"></div>
<ul class="submenu_l2_{1}">
<li class="nav2_passiv">
<a href=""> <div
class="submenu_middle_l2">Link 1.1</div></a>
</li>
</ul>
</li>
<div class="submenu_bottom_{1}"></div>
<div class="submenu_top"></div>
<li class="nav1_passiv">
<div class="submenu_middle">
<a href="">Link 2</a>
</div>
<div class="submenu_img"></div>
<ul class="submenu_l2_{2}">
<li class="nav2_passiv">
<a href=""><div
class="submenu_middle_l2">Link 2.1</div></a>
</li>
</ul>
</li>
<div class="submenu_bottom_{2}"></div>
</ul>
Die Zahl in {n} soll sich automatisch hochzählen, aber leider bekomme ich
das nicht so hin, dass die einzelnen Container an der richtigen Stelle sind.
Hier ist eine art Ansatz von mir leider funktioniert es so nicht:
lib.SubMenu = HMENU
lib.SubMenu.entryLevel = 2
lib.SubMenu {
1 = TMENU
1 {
expAll =1
wrap = <ul class="nav">|</ul>
noBlur = 1
NO = 1
NO {
beforeWrap = <div
class="submenu_top"></div>
linkWrap = <div
class="submenu_middle">|</div>
after.cObject = TEXT
after.cObject.dataWrap = |
afterWrap = <div
class="submenu_img">|</div>
afterImg = GIFBUILDER
afterImg {
XY = [10.w],[10.h]
format = jpg
10 = IMAGE
10.file {
import =
uploads/media/
import.field =
media
import.listNum =
0
}
}
afterImgLink = 1
wrapItemAndSub.cObject = TEXT
wrapItemAndSub.cObject.dataWrap = <li
class="nav1_passiv">|</li><div
class="submenu_bottom_{register:count_MENUOBJ}"></div>
RO=1
}
ACT <.NO
ACT {
wrapItemAndSub.cObject = TEXT
wrapItemAndSub.cObject.dataWrap = <li
class="nav1_activ">|</li><div
class="submenu_bottom_{register:count_MENUOBJ}"></div>
}
}
2 < .1
2 {
linkWrap.cObject = TEXT
linkWrap.cObject.dataWrap = <ul
class="submenu_l2_{register:count_MENUOBJ}">|</ul>
NO.linkWrap = <li class="nav2_passiv"><div
class="submenu_middle_l2">|</div></li>
ACT.linkWrap = <li class="nav2_activ"><div
class="submenu_middle_l2">|</div></li>
}
}
Vielleicht hat von Euch jemand eine Idee, wie ich es hinbekomme.
More information about the TYPO3-german
mailing list