Die Perfectlightbox bedient sich nur des Titles beim ersten Bild des News-Beitrags und verwendet den als Title für alle Bilder. Liegt an einem winzigen bug in tt_news (Stand 16.11.2010).
Versionen:
TYPO3 4.44
Perfectlightbox 3.0.8 (mit 3.0.9 noch nicht getestet, kann aber eigtl. nicht anders sein)
tt_news 3.01
Abhilfe:
http://bugs.typo3.org/view.php?id=15506
“Before tt_news 3.0 i was using plugin.tt_news.imageMarkerFunc to add a new register “IMAGE_NUM_CURRENT” imitating the behaviour for default rendering.
Especially for my EXT:perfectlightbox this was needed for its typolink.title-generation. That’s not working anymore…
I’d like to ask for the following addition in class.tx_ttnews.php at line 2315:
if (($iC > 0 && $this->config['firstImageIsPreview']) || ($iC >= 0 && $this->config['forceFirstImageIsPreview'])) {
$GLOBALS['TSFE']->register['IMAGE_NUM_CURRENT'] = $cc+1;
} else {
$GLOBALS['TSFE']->register['IMAGE_NUM_CURRENT'] = $cc;
}
I think this could prove useful on other occasions as well!
Best regards, Ben”
Danke für die Lösung!