Categories > TinyButStrong general >

empty table-tags when using block=tr

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: herr.rilke
Date: 2006-02-27
Time: 15:27

empty table-tags when using block=tr

hi everyone,

while trying to print debug information to the screen using

$TBS->MergeBlock('debug',$_GET);

an empty table tag set ist left if $_GET has no content.


the template code:
<table  border="1" align="center" cellpadding="2" cellspacing="0">
  <tr bgcolor="#F0F0F0">
    <td>[debug.key;block=tr;magnet=table]</td>
    <td>[debug.val]</td>
  </tr>
  <tr bgcolor="#E6E6E6">
    <td>[debug.key;block=tr;magnet=table]</td>
    <td>[debug.val]</td>
  </tr>
</table>

how can i prevent empty table-tags and invalid (X) HTML?


thanks!
By: Skrol29
Date: 2006-02-27
Time: 15:48

Re: empty table-tags when using block=tr

Hello,

You can use parameter "nodata" to have a section that will be prompted when they are no data. There is also a solution in the a tips & ticks forum to delete the table tags when ther is no data.
By: herr.rilke
Date: 2006-02-27
Time: 16:59

Re: empty table-tags when using block=tr *SOLVED*

hello skrol29,

tips and tricks (http://tinybutstrong.com/forum.php?msg_id=4489) solved my problem.

i missed that.

thanks for your patience!


herr rilke