<TD rowspan="{{numberOfRepetitions}}">This question has been answered by kp52. See the first response.
<tr><th>[+bwPosition:repeat=`[+lastPosition+]`+]</th> <td>[+hidemenu:is=`0`:then=`<a href="[~[+id+]~]">[+pagetitle+] »»</a>`:else=`[+pagetitle+]`+]</td></tr>
<?php
// phx:repeat
if ($output == $options) {
$result = ' ';
} else {
$result = $output;
}
$modx->setPlaceholder('lastPosition', $output);
return $result;
?>
[+eventDate+]it becomes:
[+eventDate:repeat=`[+lastPosition+]`+]
[ed. note: andrearicci last edited this post 14 years, 6 months ago.]
The Ditto tpl chunk reads:
<tr><th>[+bwPosition:repeat=`[+lastPosition+]`+]</th> <td>[+hidemenu:is=`0`:then=`<a href="[~[+id+]~]">[+pagetitle+] »»</a>`:else=`[+pagetitle+]`+]</td></tr>
and the PHx modifier is a snippet called phx:repeat
<?php // phx:repeat if ($output == $options) { $result = ' '; } else { $result = $output; } $modx->setPlaceholder('lastPosition', $output); return $result; ?>
:) KP
<td [+eventDate:hiderepeat=`[+hidestyle+]`+]>[+eventDate+]</td>
<?php
// phx:hiderepeat (https://forums.modx.com/thread/modify?post=418124)
if ($output == $options) {
$result = 'style="visibility:hidden;"';
} else {
$result = '';
}
$modx->setPlaceholder('hidestyle', $output);
return $result;
?>