Feature #17747
closed
Integrate possibility to reverse order of rootline HMENU
Added by Ralf Hettinger over 16 years ago.
Updated almost 14 years ago.
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
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).
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?
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.
Committed to SVN Trunk (rev. 4402)
Also available in: Atom
PDF