[BUGFIX] Show images in preview of page module 98/30598/2
authorFrans Saris <franssaris@gmail.com>
Thu, 5 Jun 2014 19:32:38 +0000 (21:32 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 5 Jun 2014 20:28:44 +0000 (22:28 +0200)
For custom content elements with image these are shown
as thumbs in the list module but not in the page module.

This patch also renders the images when present just
like the bodytext.

Resolves: #59375
Releases: 6.2
Change-Id: If39e8b22af6144e5d6990a741559bd7574ee5e09
Reviewed-on: https://review.typo3.org/30598
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/backend/Classes/View/PageLayoutView.php

index 88fd6c9..32fe317 100644 (file)
@@ -1589,6 +1589,9 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
                                                if ($row['bodytext']) {
                                                        $out .= $this->linkEditContent($this->renderText($row['bodytext']), $row) . '<br />';
                                                }
+                                               if ($row['image']) {
+                                                       $out .= $this->thumbCode($row, 'tt_content', 'image') . '<br />';
+                                               }
                                        } else {
                                                $message = sprintf(
                                                        $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:labels.noMatchingValue'),