Project

General

Profile

Actions

Bug #46864

closed

renderMethod=table (IMGTEXT rendering) not compatible with FAL yet

Added by Reindl Bernd over 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2013-04-02
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

If i use renderMethod=table for images (newsletter needs rendering as a table) the images in TYPO3 6.0 wasn´t rendered, because "ImageTextContentObject" don´t check if imgList entry is integer.

So i modified the Code from Row 194+ like this:

for ($a = 0; $a < $imgCount; $a++) {
$imgKey = $a + $imgStart;
// if the image cannot be interpreted as integer (therefore filename and no FAL id), add the image path
if (\TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($imgs[$imgKey])) {
$totalImagePath = intval($imgs[$imgKey]);
} else {
$totalImagePath = $imgPath . $imgs[$imgKey];
}
$GLOBALS['TSFE']->register['IMAGE_NUM'] = $a;
$GLOBALS['TSFE']->register['IMAGE_NUM_CURRENT'] = $a;
$this->cObj->data[$this->cObj->currentValKey] = $totalImagePath;
$imgObjNum = intval($splitArr[$a]['imgObjNum']);
$imgConf = $conf[$imgObjNum . '.'];

This code ist the same, as it is in CssStyledContentController->render_textpic.

Additional i think, this had to be done at row 178 (ImageTextContentObject) and row 588 (CssStyledContentController).


Files

ImageTextContentObject.php (22.9 KB) ImageTextContentObject.php typo3/sysext/frontend/Classes/ContentObject/ Reindl Bernd, 2013-12-02 07:35

Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #47004: CSS Styled Content | renderMethod = tableClosed2013-04-06

Actions
Actions

Also available in: Atom PDF