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

Feature #2058

M-ID/0000368: Even/odd class to zebra posts list

Added by Björn Detert over 4 years ago. Updated over 2 years ago.

Status:Resolved Start date:2008-05-25
Priority:Should have Due date:
Assignee:Martin Helmich % Done:

100%

Category:Forum
Target version:0.1.8 Estimated time:0.50 hour
Votes: 0

Description

Would be nice to have added in code. I think this is more common in forum systems than listing forums or topics.

Add marker on function getPostListMarkers:

'###LIST_POST_EVENODD###' => $extra['###LIST_POST_EVENODD###']

Add to main list_post function:
$i = 0;
while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($postlist)) {
$extra = array('###LIST_POST_EVENODD###' => (!($i++ % 2)) ? $this->conf['display.']['listPostItem.']['oddClass']:$this->conf['display.']['listPostItem.']['evenClass']);
$postmarker = tx_mmforum_postfunctions::getPostListMarkers($row,$topic_data, $extra);
$content .= $this->cObj->substituteMarkerArrayCached($template, $postmarker);
}

And add the marker to list_post.html template file on pertinent <tr>

History

Updated by Martin Helmich about 4 years ago

  • Status changed from New to Accepted
  • Priority changed from -- undefined -- to Should have
  • Target version set to 0.1.8
  • Estimated time set to 0.50

Updated by Martin Helmich about 4 years ago

  • Status changed from Accepted to Resolved
  • Assignee set to Martin Helmich
  • % Done changed from 0 to 100

Also available in: Atom PDF