<h2>Price List</h2>
<p><table><br />
<thead><br />
<th>Service</th><br />
<th>USC Price</th><br />
<th>Non USC Price</th> <br />
</thead><br />
<tbody><br />
{reverse_related_entries weblog = "core_facilities_prices" orderby="title"}<br />
{if no_reverse_related_entries}<br />
No price list for this Core Facility.<br />
{/if}<br />
<tr class="{switch='odd|even'}"><br />
<td>{title}</td><br />
<td>{usc_price}</td><br />
<td>{non_usc_price}</td><br />
</tr><br />
{/reverse_related_entries} <br />
</tbody> <br />
</table>In the above code, I’d really like the no_reverse_related_entries to span the entire table declaration. But if I do this, that would give me multiple tables for each entry, wouldn’t it?
How do I go about not showing the entire table when there are no related entries?