Project

General

Profile

Actions

Bug #77932

closed

FluidStyledContent - ListViewHelper ignores order of given array

Added by Thomas W. about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-09-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.

Actions #1

Updated by Thomas W. about 8 years ago

  • Priority changed from Should have to Must have
Actions #2

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?

Actions #3

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.

Actions

Also available in: Atom PDF