Hallo!
Ich habe auch dieses odd/even - Problem. Die Tabelle funktioniert soweit gut. Auf dem Rest der Seite verwende ich odd/even-rows für bessere Lesbarkeit. Nur die Eventtabelle will nicht so recht.
event_teaser_tab.tpl:
PHP-Code:
<tr>
<td>
<?php if ($this->details): ?>
<a href="<?php echo $this->link; ?>" title="<?php echo $this->title; ?> (<?php if ($this->day): echo $this->day; ?>, <?php endif; echo $this->date; if ($this->time): ?>, <?php echo $this->time; endif; ?>)"<?php echo $this->target; ?>><?php echo $this->title; ?></a><?php else: ?>
<?php echo $this->title; ?>
</td>
<?php endif; ?>
<td>
<?php if ($this->time || $this->span): ?>
<?php echo $this->time . $this->span; ?>
<?php endif; ?>
</td>
<td><?php echo $this->teaser; ?></td>
</tr>
Ich habe schon versucht mich an dem Tabellen-Template (system/modules/frontend/templates/ce_table.tpl) zu orientieren, aber ohne Erfolg. Es geht mir darum, jeder 2. Zeile (tr) ein odd bzw. even als Klasse zuzuordnen. Vielen Dank für die Hilfe, ich komm da nicht weiter ....
Der Vollständigkeit halber noch mein mod_eventlist.tpl:
PHP-Code:
<!-- indexer::stop -->
<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->headline): ?>
<<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
<?php endif; ?>
<table class="zebra">
<tbody>
<?php echo $this->events; ?>
</tbody>
</table>
<?php echo $this->pagination; ?>
</div>
<!-- indexer::continue -->
Lesezeichen