Skip to content

Commit

Permalink
[FIX] get preview of media in ImageTextLink content elements (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelmatseriks authored and dmh committed Apr 20, 2017
1 parent 1ed79af commit 72eefb1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/Hooks/ImageTextLinkPreviewRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ public function preProcess(PageLayoutView &$parentObject, &$drawItem, &$headerCo
if ($row['media']) {
$itemContent .= $parentObject->linkEditContent($parentObject->getThumbCodeUnlinked($row, 'tt_content', 'media'), $row);
}
if ($row['assets']) {
$itemContent .= $parentObject->linkEditContent($parentObject->getThumbCodeUnlinked($row, 'tt_content', 'assets'), $row);
}

$drawItem = false;
}
Expand Down

0 comments on commit 72eefb1

Please sign in to comment.