Project

General

Profile

Bug #87799

Updated by Chris W about 5 years ago

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 
 <pre><code class="text"> 
 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 
          } 
       } 
 } 
 </code></pre> 

 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 ist defined without a marker it works as well. 
 Other TYPOSCRIPT select options like uidInList or max accept markers without any problems.

Back