Hallo,
gibt es eine Möglichkeit, die TS Einstellung
firstImageIsPreview =1
auch in der LIST Einstellung zu aktivieren?
Gruß
junges
Nachtrag:
Eine Möglichkeit gibt es...
Ich habe die Extension ein wenig angepasst.
Ich habe eine neue TypoScript Variable für die tt_news erzeugt und die PHP Klasse
erweitert.
System:
Typo3 Version 4.1.5
tt_news Version 2.5.0
Patch:
Im Pfad tt_news/static/ts_new werden die Dateien constants.txt und setup.txt ergänzt.
constants.txt
# cat=plugin.tt_news/enable/200; type=string; label= PageId Exclude list for FirstImageIsPreview. This disables the first image in LIST view at the news section
excludePageIDfistImage = PageID 1, PageID 2 usw.
setup.txt
# Exclude List
excludePageIDfistImage = {$plugin.tt_news.excludePageIDfistImage}
Im Pfad tt_news/pi die Datei class.tx_ttnews.php ab Zeile 2415
/*
* Patch firstImage is preview
*
*/
// Define array variable
$excludeStartpages = array();
if(isset( $this->conf['excludePageIDfistImage'] ) && $this->conf['excludePageIDfistImage'] != false ) {
$excludeStartpages = array($this->conf['excludePageIDfistImage']);
}
if(!in_array($GLOBALS['TSFE']->id, $excludeStartpages)) {
if( $this->config['firstImageIsPreview'] != false && $textRenderObj == 'displayList'){
array_shift($imgs);
array_shift($imgsCaptions);
array_shift($imgsAltTexts);
array_shift($imgsTitleTexts);
}
}