[PHPTAL] Creating a X by X Table
Levi Stanley
levi at eneservices.com
Wed Nov 8 19:19:54 CET 2006
I am not able to nest paths (eg: ${favories/${x}/getEpId}), so is there
another way to generate a XbyX Table, and get access to each element?
<table width="99%">
<tr><td style='border: 1px solid black'>
<b><font face="arial" size="3">Today's Top Favorites
Lists</font></b><p/>
<table width="100%">
<tr tal:repeat="row php: range(0,rows)">
<td tal:repeat="col php: range(0,cols)"
align="center" border="style: 1px solid black">
<span tal:define="x php: row*4 + col">
<a tal:condition="exists:
favorites/${x}/getEpId"
href="show-video.php?episode-id=${favories/${x}/getEpId}"><img
border="0" height="100" width="143"/></a>
</span>
</td>
</tr>
</table>
<p/>
View All Favorites
</td></tr>
</table>
Any assistance, would be greatly appreciated.
Best regards,
Levi
More information about the PHPTAL
mailing list