Project

General

Profile

Actions

Bug #54884

closed

RootlineUtility does not consider foreign_sorting for relation fields

Added by Markus Klein about 10 years ago. Updated over 4 years ago.

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

100%

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

Description

Problem
RootlineUtility ::enrichWithRelationFields does not consider the TCA setting foreign_sorting.

Hence it is not possible to retrieve media elements of pages via typoscript in the correct order.

Example
Add two images as media to a page in BE.

Use this Typoscript snippet:

page.15 = COA
page.15 {
  20 = IMG_RESOURCE
  20.stdWrap.wrap = <div><img src="|" /></div>
  20.file {
    import.data = levelmedia: -1
    import.listNum = 0
    treatIdAsReference = 1
  }
  30 = IMG_RESOURCE
  30.stdWrap.wrap = <div><img src="|" /></div>
  30.file {
    import.data = levelmedia: -1
    import.listNum = 1
    treatIdAsReference = 1
  }
}

Before the patch the images will always have the same display order, no matter how you sort them in the page properties.


Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Bug #46383: levelmedia ignores sorting of media recordsClosed2013-03-17

Actions
Related to TYPO3 Core - Bug #46383: levelmedia ignores sorting of media recordsClosed2013-03-17

Actions
Related to TYPO3 Core - Bug #71973: Sorting of file relations doesn't have any effect in a workspaceClosedOliver Hader2015-11-30

Actions
Has duplicate TYPO3 Core - Bug #54913: Sorting of media elements in page->resources not reflected after re-orderingClosed2014-01-11

Actions
Actions

Also available in: Atom PDF