Skip to content

Commit

Permalink
[BUGFIX] fix rendering of content elements inside gridelements columns (
Browse files Browse the repository at this point in the history
  • Loading branch information
anjeylink authored and dmh committed Dec 18, 2018
1 parent a78d995 commit 78814ed
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 11 additions & 0 deletions Configuration/TypoScript/Library/lib.content.setupts
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,14 @@ lib.content.top {
50 < styles.content.get
50.select.where = colPos=3
}

# Use for gridelements columns render
lib.content.gridelementsRender = COA
lib.content.gridelementsRender {
50 = RECORDS
50 {
tables = tt_content
source.current = 1
dontCheckPid = 1
}
}
4 changes: 1 addition & 3 deletions Resources/Private/Partials/GridElements/RenederColumns.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<f:variable name="row">{children.1}</f:variable>
<f:variable name="col">{col}</f:variable>

<f:for each="{row.{col}}" as="elem">

<f:cObject typoscriptObjectPath="tt_content.{elem.data.CType}" data="{elem.data}"/>
<f:cObject typoscriptObjectPath="lib.content.gridelementsRender">{elem.data.uid}</f:cObject>
</f:for>

0 comments on commit 78814ed

Please sign in to comment.