CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #8314

No image in LIST and LATEST

Added by Erik Svendsen almost 3 years ago. Updated about 1 month ago.

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

rgnewsce-error.jpg (66.5 kB) Erik Svendsen, 2010-06-17 10:57

rgnewsce-error-corrected.jpg (78.6 kB) Erik Svendsen, 2010-06-17 10:57

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.

Also available in: Atom PDF