Bug #77932
closedFluidStyledContent - ListViewHelper ignores order of given array
0%
Description
I expect the 'FluidStyledContent - ListViewHelper' to return the pages in the order passed in in the parameter array.
example:
<ce:menu.list pageUids="{0: 15, 1: 10, 2: 12}" as="pages">
<f:for each="{pages}" as="page">
<f:debug>{page.uid}</f:debug>
</f:for>
</ce:menu.list>
output:
10
12
15
expectation:
15
10
12
In my opinion this should be the default behaviour. or there should be another parameter for the viewhelper: 'sortingBy'
Thanks in advance.
Updated by Thomas W. about 8 years ago
- Priority changed from Should have to Must have
Updated by Thomas W. about 8 years ago
ok - the problem lies a bit deeper:
the Viewhelper calls the function 'getMenuForPages'(TYPO3\CMS\Frontend\Page\PageRepository)
which returns '@return array Array with key/value pairs; keys are page-uid numbers. values are the corresponding page records'
How can one map the pages back to the original order again?
Updated by Riccardo De Contardi about 8 years ago
- Status changed from New to Closed
This has been solved with https://review.typo3.org/#/c/50247/ , so I am closing it
if you think that this is the wrong decision or experience the issue again, then please reopen it or open a new issue with a reference to this one. Thank you.