Feature #2058
M-ID/0000368: Even/odd class to zebra posts list
| 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