Hi,
es soll ein Menü angezeigt werden, das mit dem ersten Eintrag beginnt und aus "maxItems.stdWrap.data = register:registerCols" Haupteinträgen besteht. z.B. register:registerCols = 2 Nun werden auch 2 Haupteinträge angezeigt, alles bestens.
Nun möchte ich, das die Untereiträge alle angezeigt werden, es werden aber auch hier nur 2 (register:registerCols = 2) angezeit. Okay, maxItems wird wohl an das Untermenü weitergegeben, sollte aber mit der Angabe maxItems = 100 im tmenu 2 auf 100 erhöht sein, es werden aber weiterhin nur 2 Untereinträge angezeigt.
Was läuft hier falsch - fehlende Angaben ???
///////////////////////////////////////////
/// Register Menü links
///////////////////////////////////////////
40 = LOAD_REGISTER
40 {submenuLeft.cObject = COA
submenuLeft.cObject{
10 = HMENU
10 {
special = directory
special.value.data = register:registerParentID
begin = 1
maxItems.stdWrap.data = register:registerCols
1 = TMENU
1{
expAll = 1
noBlur = 1
wrap = |
NO {
allWrap.cObject = COA
allWrap.cObject {
20 = TEXT
20.value = <h4>|</h4>
20.innerWrap = |
}
}
}
2 = TMENU
2{
expAll = 1
noBlur = 1
maxItems = 100
begin = 1
wrap = <ul class="csc-menu csc-menu-1">|</ul>
NO.ATagTitle.field = abstract // description // subtitle
NO.wrapItemAndSub = <li>|</li>
NO.stdWrap.htmlSpecialChars = 1
}
}
}
Ps: class.tslib_menu.php wurde gepatcht um min, max und begin perstdWrap anzusprechen
Index: typo3/sysext/cms/tslib/class.tslib_menu.php
===================================================================
--- typo3/sysext/cms/tslib/class.tslib_menu.php (revision 3560)
+++ typo3/sysext/cms/tslib/class.tslib_menu.php (working copy)
@@ -832,9 +832,15 @@
$c=0;
$c_b=0;
+
$minItems = intval($this->mconf['minItems'] ? $this->mconf['minItems'] : $this->conf['minItems']);
+$minItems = $this->parent_cObj->stdWrap($minItems, $this->conf['minItems.']);
+
$maxItems = intval($this->mconf['maxItems'] ? $this->mconf['maxItems'] : $this->conf['maxItems']);
+$maxItems = $this->parent_cObj->stdWrap($maxItems, $this->conf['maxItems.']);
+
$begin = tslib_cObj::calc($this->mconf['begin'] ? $this->mconf['begin'] : $this->conf['begin']);
+$begin = $this->parent_cObj->stdWrap($begin, $this->conf['begin.']);
$banUidArray = $this->getBannedUids();
Gruß
Cosmo