Feature #49041
closedHMENU + special=list + depht
0%
Description
Don't know if this is a bug and if anybody can reproduce this. This is the pagetree:
+ One (Rootpage + Typoscript)+ Two+ Three
-
---+ Four
----+ Five
-----+ Six
------+ Seven
A HEMNU with special=list and expAll=0 does not render all Levels (although TMENUs are configured from 1 to 7) when you click on the navigation items after each other. The deeper levels are not expanded in some cases:
Having special.value=(One) only shows "One" and "Two", deeper Levels are not rendered after you've clicked on "Two". Having special.value=(Two) shows all Levels after you've clicked on each navigation item. Having special.value=(Deeper than one) only shows the (Deeper than one) and no deeper levels are expanded at all after you've clicked on (Deeper than one).
The HMENU TS:
@
lib.navtest = HMENU
lib.navtest{
special = list
# Please test special.value with a page from each level
special.value = 1
1 = TMENU
1{
noBlur = 1
expAll = 0
wrap = <ul class="item level-1"> | </ul>
NO = 1
NO {
doNotLinkIt = 0
wrapItemAndSub = <li> | </li>
ATagTitle.field = title
}
ACT < .NO
ACT {
wrapItemAndSub = <li class="selected> | </li>
}
}
2 < .1
2{
expAll = 0
NO{
wrapItemAndSub = <li class="uid-{field:uid}"> | </li>
wrapItemAndSub.insertData = 1
}
ACT{
wrapItemAndSub = <li class="selected uid-{field:uid}"> | </li>
wrapItemAndSub.insertData = 1
}
}
3 < .2
4 < .2
5 < .2
6 < .2
7 < .2
}
@
Updated by Jan Kornblum over 11 years ago
This seems to be related to this:
http://typo3.3.n7.nabble.com/HMENU-TMENU-seltsames-Phanomen-td18915.html
Updated by Jo Hasenau over 11 years ago
I tested a similar setup myself and came to the conclusion:
Automatic expanding of submenus only works for those IDs in the list that belong to pages one level below the page containing the TypoScript and the template must have the root flag set. For any other ID in the list and any template without the root flag, the menu only expands up to the level that has "expAll = 1" set.
This is true for any number of levels set to expAll.
As soon as the listed ID is not a direct child of the page containing the TS template, the automatic expanding of expAll = 0 stops.
This is still the same when you don't set it to 0 but remove it via expAll >
Updated by Mathias Schreiber almost 10 years ago
- Tracker changed from Bug to Feature
- Category changed from Pagetree to TypoScript
- Target version set to 7.2 (Frontend)
I'll change this to Feature becaue the idea of list never was to show subpages.
It's a menu of a fixed list of items.
We do get the intention and will see if we can make it happen.
Updated by Benni Mack over 9 years ago
- Target version changed from 7.2 (Frontend) to 7.4 (Backend)
Updated by Susanne Moog over 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Benni Mack about 9 years ago
- Target version changed from 7.5 to 8 LTS
Updated by Riccardo De Contardi over 7 years ago
- Target version changed from 8 LTS to 9.0
Updated by Benni Mack over 4 years ago
coordinated with the author of the ticket.