Categories > TinyButStrong general >

Insert banner between serial display rows

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: htvu
Date: 2007-08-27
Time: 06:26

Insert banner between serial display rows

Hi,
My template file look like
<table>
   <tr>
       <td>[blk_1.title;block=td]</td>
       <td>[blk_2.title;block=td][blk;block=tr+tr;serial]</td>
   </tr>
   <tr>
       <td>Banner here</td>
   </tr>
</table>

if my data have many rows it will display many banner.
Now I want to display just only 1 banner after (below) first row.
I try to use conditional display in second <tr> with [blk.#]=1 but unsuccessful. Please help me. Thanks!
By: Skrol29
Date: 2007-08-28
Time: 02:45

Re: Insert banner between serial display rows

This is a strange case of rupture. I cannot see yet a good solution for this because sections cannot be both conditional ans serial.

Maybe you could put a special HTML comment tag instead of the the banner row. And when the block is merged, you replace the first comment (only the first one) with the "<tr>banner</tr>".