Categories > TinyButStrong general >

don't draw table if no data

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: krystal
Date: 2012-04-28
Time: 14:26

don't draw table if no data

is there a way to not draw the table if there is no data?

<table>
  <tr>
    <td>[blk.id;block=tr]</td>
    <td>[blk.name]</td>
  </tr>
</table>

<p>[blk.id;block=p;nodata]No data.</p>
By: Skrol29
Date: 2012-04-28
Time: 19:27

Re: don't draw table if no data

Hi,

<table>
  <tr>
    <td>[blk.id;block=tr;bmagnet=table]</td>
    <td>[blk.name]</td>
  </tr>
</table>

<p>[onshow;when [blk.#]=0;block=p]No data.</p>
By: krystal
Date: 2012-04-28
Time: 19:48

Re: don't draw table if no data

Thank you! :)