Bug #14944
closedmaxItems of HMENU displays all menu-entries if set to zero
0%
Description
If you set the value of the HMENU maxItems property to zero, The HMENU displays all available menu-entries. I`d rather expect it to display no entries at all. This way, you cannot hide a menu just by setting the maxItems property to zero.
This makes sense if you set the value of maxItems via a constant e.g.
sitesettings.maxMenuEntries and would like the menu to disappear when this constant is set to zero.
A workaround would be to use if:
temp.mymenu= COA
temp.mymenu {
20 = HMENU
20 {
special = directory
special.value = {$entry_id}
maxItems = {$max_amount}
1 = TMENU
1 {
NO {
linkWrap = <strong>|</strong>
}
}
}
stdWrap.if {
value = {$max_amount}
equals = 0
negate = 1
}
}
(issue imported from #M1406)