Project

General

Profile

Actions

Bug #87799

open

Typoscript SELECT: orderBy = ###marker### wont work

Added by Chris W over 5 years ago. Updated about 4 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2019-02-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
typoscript, select, orderBy, dataProcessing
Complexity:
Is Regression:
Sprint Focus:

Description

I tried to use markers for the TYPOSCRIPT select option "orderBy" as explained in the docs:
https://docs.typo3.org/typo3cms/TyposcriptReference/Functions/Select.html#markers

page.60 = CONTENT
page.60 {
      table = tt_content
      select {
         pidInList = 73
         where = header != ###whatever###
         orderBy = ###sortfield###
         markers {
            whatever.data = GP:first
            sortfield.value = sor
            sortfield.wrap = |ting
         }
      }
}

This works for TYPO3 7 but for 8 or 9 it ends up in an Exception:
Doctrine\DBAL\Exception\InvalidFieldNameException -> .... ORDER BY `'sorting'` ASC': Unknown column ''sorting'' in 'order clause'

If the sorting field is defined without a marker it works as well.
Other TYPOSCRIPT select options like uidInList or max accept markers without any problems.

Actions

Also available in: Atom PDF