[TYPO3-german] gridelements CONTENT von Unterseiten doppelt
Hauke Haller
post at haukehaller.de
Sat Feb 10 20:17:15 CET 2018
Am 10.2.18 um 19:34 schrieb Gregor Hermens:
> 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
>
Moin Gregor,
ja klar! Das ist dann logisch und funktioniert natürlich.
Vielen Dank!
Hauke
More information about the TYPO3-german
mailing list