Bug #24367
closed
changes in tmenu_layers.php broke TMENU
Added by Daniel Wagner almost 14 years ago.
Updated over 11 years ago.
Description
submenues appeared on mouseover (sometimes at wrong places) but often never disappeared.
update from 4.2.15 to 4.2.16 changed the creation of the unique menu id. maybe it's not unique anymore.
replaced (t|g)menu_layers.php by the old versions and now everything works fine.
(issue imported from #M16783)
there should be better way to solve this problem: set a layer_menu_id in TMENU
(see http://bugs.typo3.org/view.php?id=12376)
but this does not solve my problem. getting a javascript error because
array GLV_menuXY does not contain needed entry when called by GL..._doTop.
@wagner could you post your TypoScript that fails with the current version?
I can confirm this bug. Menuitems are not unique anymore. See bugreport 0016165
I confirm this bug.
If reverting bug 12376 then it works:
since 4.2.16:
- $this->WMid = trim($this->mconf['layer_menu_id']) ? trim($this->mconf['layer_menu_id']) . 'x' : substr(md5('gl' . serialize($this->mconf)), 0, 6);
till 4.2.15:
$this->WMid = trim($this->mconf['layer_menu_id'])?trim($this->mconf['layer_menu_id']).'x':substr(md5(microtime()),0,6);
my (shorted) typoscript:
temp.navtext {
entryLevel = 0
1 = TMENU_LAYERS
1 {
noBlur = 1
wrap = <ul class="level1">|< /ul>
expAll = 1
layerStyle = position:absolute;visibility:hidden;
lockPosition = y
hideMenuWhenNotOver = 1
hideMenuTimer = 250
leftOffset = 20
topOffset = 40
relativeToTriggerItem = 1
NO{
allWrap = <li class="no">|< /li>
}
}
2 < .1
2 {
wrap = <ul class="level2">|< /ul>
leftOffset = 200
topOffset = 5
xPosOffset = 0
yPosOffset = 0
relativeToTriggerItem = 1
relativeToParentLayer = 1
}
3 < .1
3 = TMENU
3.wrap = <ul class="level3">|< /ul>
}
Problem: the 3rd layer on first position is always the same, and the 2nd position on the 3rd layer always the same (from first occurence)... etc.
I cannot set different layer_menu_id for the different LEVEL2-Menus.... - this would maybe fix it also....
I can confirm this bug too. After an update from 4.4.3 to 4.4.6.
Replace the tmenu_layers.php file with the old one and it works again.
The fix for bug 0012376 seems to have introduced the problem.
- Target version deleted (
0)
What about this issue?
Just saw that we still have the false behavior in 4.5.11: a broken menu in the 3rd level:
Main1 | Main2 | Main3
Sec1
Sec2
Sec3 > Thrd1
Sec4 Thrd2
Thrd3
The the third menu is often the same and some of them are placed in the upper left corner. That's because some of the menu-div have the same id...
With my change (see Comment 4 above) it's ok.
What is needed to go on with this?
/Christian
- Category deleted (
Communication)
- Status changed from New to Rejected
With 6.1 issue #46358, the _layers menus where moved to statictemplates, and statictemplates was removed from core afterwards. This issue won't be solved in the core anymore.
Also available in: Atom
PDF