Skip to content

Commit 78814ed

Browse files
anjeylinkdmh
authored andcommitted
[BUGFIX] fix rendering of content elements inside gridelements columns (#454)
1 parent a78d995 commit 78814ed

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

Configuration/TypoScript/Library/lib.content.setupts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,14 @@ lib.content.top {
2323
50 < styles.content.get
2424
50.select.where = colPos=3
2525
}
26+
27+
# Use for gridelements columns render
28+
lib.content.gridelementsRender = COA
29+
lib.content.gridelementsRender {
30+
50 = RECORDS
31+
50 {
32+
tables = tt_content
33+
source.current = 1
34+
dontCheckPid = 1
35+
}
36+
}
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<f:variable name="row">{children.1}</f:variable>
2-
<f:variable name="col">{col}</f:variable>
32

43
<f:for each="{row.{col}}" as="elem">
5-
6-
<f:cObject typoscriptObjectPath="tt_content.{elem.data.CType}" data="{elem.data}"/>
4+
<f:cObject typoscriptObjectPath="lib.content.gridelementsRender">{elem.data.uid}</f:cObject>
75
</f:for>

0 commit comments

Comments
 (0)