Habe mir mal das Array "$row" ausgeben lassen, danach kannst du das kürzer und direkter ansprechen:
PHP-Code:
<?php foreach ($this->tbody as $class=>$row): ?>
<div class="<?php echo $class; ?>">
<?php echo "Datum: ".date($GLOBALS['TL_CONFIG']['datimFormat'],$row['date']['content']); ?>
<br />
<?php echo "Autor: ".$row['name']['content']; ?>
<br />
<?php echo "Kommentar: ".$row['comment']['content']; ?>
<br />
</div>
<?php endforeach; ?>
ergibt (bei mir nur 2 Test Kommentare):
Code:
Datum: 10.02.2010 21:00
Autor: Max
Kommentar: Testing Comments
Datum: 10.02.2010 20:58
Autor: Mike
Kommentar: Das ist der Kommentartext.
Mit:
PHP-Code:
$row['comment']['id'];
kommst du an die Kommentar ID, damit könntest du dann die Verknüpfung machen.
Lesezeichen