[TYPO3-german] gridelements CONTENT von Unterseiten doppelt

Gregor Hermens gregor.hermens at a-mazing.de
Sat Feb 10 19:34:39 CET 2018


Hallo Hauke,

Hauke Haller wrote:

> per CONTENT fasse ich die Inhalte von Unterseiten auf einer Oberseite
> zusammen: (wie im Kochbuch vorgeschlagen)
> 
> temp.unterseiten = CONTENT
> temp.unterseiten {
>    table = pages
>    select {
>      pidInList.field = uid
>      orderBy = sorting
>    }
>    renderObj = CONTENT
>    renderObj {
>      table = tt_content
>      select {
>        pidInList.field = uid
>        orderBy = sorting
>      }
>    }
> }
> 
> Nun werden die Inhalte aus gridelemnts doppelt dargestellt: Einmal als
> normale tt_content Elemente und dann nochmal innerhalb des
> contentelements gridelements.

du solltest schon festlegen, aus welcher Spalte dein Content kommen soll, 
also z.B.

temp.unterseiten = CONTENT
temp.unterseiten {
  table = pages
  select {
    pidInList.field = uid
    orderBy = sorting
  }
  renderObj = CONTENT
  renderObj {
    table = tt_content
    select {
      pidInList.field = uid
      orderBy = sorting
      where = colPos=0
    }
  }
}

https://docs.typo3.org/typo3cms/TyposcriptReference/Functions/Select/

hth
Gregor


More information about the TYPO3-german mailing list