Feature #17747
closedIntegrate possibility to reverse order of rootline HMENU
0%
Description
Suggesting a TYPOSCRIPT parameter for HMENU special=rootline property which would trigger outputting a rootline menu to the rootline instead of a menu from the rootline by simply reverting the order of items within such a HMENU.
Could be achieved with a very simple patch of class.tslib_menu.php
The attached patch implements
special.reverseOrder = [boolean]
to realize this feature.
(issue imported from #M6637)
Files
Updated by Martin Kutschker about 17 years ago
Looks ok expecpt the "$temp = array_reverse($temp);" and the fact that the patch isn't based from root (typo3/sysext/cms). If you change that you can post it on the core list (please follow the guidelines on other formal criteria for posting).
Updated by Ralf Hettinger about 17 years ago
Well, thanks for replying, Martin.
Changing the path diffed certainly isn't a problem, but I must admin I don't know where you see a problem with "$temp = array_reverse($temp);" since the menuitems are collected within $temp. In case of rootline, there won't be a multi-dim array as well. Re-assignment shouldn't give problems, does it?
Could you please clarify?
Updated by Martin Kutschker about 17 years ago
I had only a look a the code and fhought you tried to use $temp for $rl_MParray. I see now htat both variables are used later on. So forget it, my mistake.