Categories > TinyButStrong general >

Blocks a lá Serial in TBS 1.9x

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Cristian R.
Date: 2004-10-31
Time: 01:05

Blocks a lá Serial in TBS 1.9x

I can't find a solution to display a variable number of blocks in columns (as the Serial mode with single records). What I want to do is something like this :

blk1          blk2
  ...             ...
blk3          blk4
  ...             ...
blk5
  ...

Since I don't know how many blocks would be displayed, how can I do this with TBS?

Thanks for your answer, I'm stuck with this.

PS: I'm using TBS 1.96, so please, no TBS 2.0 exclusive code...
By: Skrol29
Date: 2004-10-31
Time: 14:01

Re: Blocks a lá Serial in TBS 1.9x

Why don't you use serial + sub-block ?

<table>
  <tr>
     <td>
        [mb_1.title][mb;block=tr;serial]
        <table><tr><td>[sb.subject;block=tr;p1=[mb_1.id]]</td></tr></table>
     </td>
     <td>
        [mb_2.title]
        <table><tr><td>[sb.subject;block=tr;p1=[mb_2.id]]</td></tr></table>
     </td>
  <tr>
By: Cristian R.
Date: 2004-11-01
Time: 18:01

Re: Blocks a lá Serial in TBS 1.9x

Skrol29,
Your suggestion worked like a charm, with a minor modification, in your example it would have been:

[mb_1.title;block=td]
...
...
[mb_2.title;block=td]

Thanks to your help a new TBS site is coming soon !!