stdWrap of special.value in HMENU is applied twice
also appears in 4.5 and very likely 4.6
stdWrap functionality of
HMENU.special.value is used, this is applied twice.
I'm not very familiar on how HMENU works internally. If someone could tell me the best place to fix this without side-effects, I would be happy to submit a patch.
Here are my findings:
The first time stdWrap is applied is
tslib_content_HierarchicalMenu::render() (line 59 in TYPO3 4.5.19).
Then it is added multiple times accross
I would go with removing the stdWrapping in
tslib_menu, but am I right with this or is there any other entry point to this class other than
tslib_content_HierarchicalMenu::render() that I should check?
Updated by Markus Klein about 11 years ago
Looking at the whole code here, all I can say: This is a complete mess!
After thinking about it a lot, it is somewhat impossible to move all the stdWraps of HMENU to the place where they actually belong, namely tslib_content_HierarchicalMenu.
One major problem is the fallback mechanism of minItems and maxItems.
Hence, the only chance to get this fixed is to remove the stdWrap from tslib_content_HierarchicalMenu.
Also excludeUidList should be moved to the place where it is used, to get at least some kind of consistency.
The stdWraps in tslib_menu are there since Nov. 2007 by Bernhard Kraft, whereas tslib_content_HierarchicalMenu exists only since Oct. 2010.