Bug #8314
No image in LIST and LATEST
| Status: | New | Start date: | 2010-06-17 | |
|---|---|---|---|---|
| Priority: | Must have | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | |||
| Votes: | 1 (View) |
Description
TYPO3 4.3.3
tt_news 3.0.1
rgnewsce 0.1.1
When using Extended News or Extended tab in normal news the noImage_stdWrap is always rendered in LIST and LATEST (see image 1)
The problem looks to be related to code on line 205 ....
//no images in existing content elements - fire noImage_stdWrap.
if(!$gotImage){
$markerArray['###NEWS_IMAGE###'] = $this->local_cObj->stdWrap($markerArray['###NEWS_IMAGE###'],$lConf['image.']['noImage_stdWrap.']);
}
} else {
// no content elements - fire noImage_stdWrap.
$markerArray['###NEWS_IMAGE###'] = $this->local_cObj->stdWrap($markerArray['###NEWS_IMAGE###'],$lConf['image.']['noImage_stdWrap.']);
}
Commenting out as following looks to solve the problem. (see image 2)
} else {
// no content elements - fire noImage_stdWrap.
//$markerArray['###NEWS_IMAGE###'] = $this->local_cObj->stdWrap($markerArray['###NEWS_IMAGE###'],$lConf['image.']['noImage_stdWrap.']);
}
But the solutions is not heavily tested, but works on two of mine installastions. Not tested on tt_nesw < 3.0.1 or TYPO3 4.2.x
History
Updated by Sven Burkert almost 3 years ago
I have that error, too.
I think the problem is the if construct:
if( ($row['type'] == 4 || $row['type'] == 5 || $confArr['extraTabForTTContent'] == 1) && !$imgList ) {
This condition is very often false, so the "noImage_stdWrap" is wrapped, even if the parameter $imgList contains images.