Categories > TinyButStrong general >

Serial display

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Sergey
Date: 2004-08-11
Time: 22:21

Serial display

First of all, want to thak г for such a great and easy template engine. You did a great job man :)

But i have some problems, the main and one is with serial display. It will be great if г can help me. Here is a html code:

<table width="90%"  border="0" cellspacing="0" cellpadding="2" bgcolor="#FCFCFC">
  <tr>
    <td colspan="3" background="templates/images/htable/bg.gif" height="20" nowrap align="left"><b style="text-transform:uppercase;">[var.strSpecial; noerr; htmlconv=no]</b></td>
  </tr>
  <tr bgcolor="#EBEBEB">
    <td>
    <table width="50%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>[bestbuy_1.category; block=td]</td>
      </tr>
      <tr>
        <td>[bestbuy_1.name; block=td;.]</td>
      </tr>
      <tr>
        <td>[bestbuy_1.id; block=td;.]</td>
      </tr>
    </table>
    </td>
    <td>
    <table width="50%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>[bestbuy_2.category;.]</td>
      </tr>
      <tr>
        <td>[bestbuy_2.name; block=td;.]</td>
      </tr>
      <tr>
        <td>[bestbuy_2.id; block=td;.]</td>
      </tr>
    </table>
    </td>
    <td>
    <table width="50%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>[bestbuy_3.category; block=td;.]</td>
      </tr>
      <tr>
        <td>[bestbuy_3.name; block=td;.]</td>
      </tr>
      <tr>
        <td>[bestbuy_3.id; block=td;.]</td>
      </tr>
    </table>
    [bestbuy; block=tr; serial]
    </td>
  </tr>
  <tr bgcolor="#EBEBEB">
    <td colspan="3" style="border-bottom: .5pt solid #E6E6E6"><img src="templates/images/1px.gif" width="1" height="1"></td>
  </tr>
</table>

but it doesn't merge it, and i can't understand why.

Thanks in advance for your reply.
By: Skrol29
Date: 2004-08-12
Time: 03:41

Re: Serial display

Hello Serge,

It seems that your sub-blocks should be defined on <table> instead of <td>
Example:
<table width="50%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>[bestbuy_1.category;block=table]</td>
      </tr>
      <tr>
        <td>[bestbuy_1.name;.]</td>
      </tr>
      <tr>
        <td>[bestbuy_1.id;.]</td>
      </tr>
</table>
By: Sergey
Date: 2004-08-12
Time: 06:49

Re: Serial display

It work's . Thank's a lot :)