0

Is it possible to render the headline of the first content element within a Grid Elements container different in the fluid_styled_content template or via TypoScript?

Peter Kraume
  • 3,577
  • 2
  • 21
  • 39

1 Answers1

1

There are several virtual fields within cObj->data that are created during the rendering process of Gridelements. So you might want to check for keys with the prefix parentgrid_

Additionally you can use

data = cObj:parentRecordNumber

to get the position of an element within the rendering order. Since Gridelements uses the sorting field of tt_content for the rendering of children and the parentRecordNumbers are handled correctly between different container columns, you should get the correct value - 1 - for the first element of each column there.

Jo Hasenau
  • 2,526
  • 1
  • 14
  • 16