Author: Alexandre Bourget Date: Thu Oct 18 16:50:22 2007 -0400 Add alternate display (class toggle for example) to tt_news. diff --git a/typo3conf/ext/tt_news/pi/class.tx_ttnews.php b/typo3conf/ext/tt_news/pi/class.tx_ttnews.php index e51d79c..1451815 100644 --- a/typo3conf/ext/tt_news/pi/class.tx_ttnews.php +++ b/typo3conf/ext/tt_news/pi/class.tx_ttnews.php @@ -970,6 +970,10 @@ class tx_ttnews extends tslib_pibase { } $markerArray = $this->getItemMarkerArray($row, $prefix_display); + // Add a toggle to the markers (toggle between 0 and 1) + // for alternate news displays. + $markerArray['###NEWS_TOGGLE_DISPLAY###'] = ($cc % 2); + // XML if ($this->theCode == 'XML') { if ($row['type'] == 1 || $row['type'] == 2) {