The Easiest Way
Remember all the stuff the renderer did when we looked at The Easy Way? Frontier will actually do much the same thing for you if your specified table renderer is an outline instead of a script.
It does this by placing the address of the table to be rendered into the page table, at adrpagetable^.adrTable. The table renderer outline is then processed as the page text, with directives processed and macros expanded. Think of the table renderer outline as the template for the page text, just like the separate template used by the table renderer script in The Easy Way.
In the table renderer outline, you can insert fields from the table by using macros of the form {adrTable^.fieldname}. So, again using the Event example, RenderTableAsEvent might look like this:
<table>
<tr valign=top>
<td><b>{adrTable^.date}</b></td>
<td>{adrTable^.name}</td>
</tr>
<tr>
<td><b>Time</b></td>
<td>{adrTable^.time}</td>
</tr>
<tr>
<td><b>Contact</b></td>
<td>{adrTable^.contact}</td>
</tr>
<tr>
<td colspan=2>{adrTable^.directions}</td>
</tr>
</table>
|
And finally, a bit about the author!