Categories > TinyButStrong general >

Rendering HTML code depending on MergeBlock() results

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: magictrickpony
Date: 2004-12-03
Time: 13:05

Rendering HTML code depending on MergeBlock() results

Hi all!

Apparently I am too stupid to get this thing working (after hours of reading the manual and browsing the forum i am posting this):

I'm rendering HTML code like <tr>Query output:</tr> once before rendering a sub-block via Mergeblock().

i.e.

<tr>Query output:</tr>
<tr>
  <td>
     [blk4.var_a;block=tr;p1=[blk2.var_x]]
  <td>
  <td>
     [blk4.var_b]
  <td>
  <td>
     [blk4.var_c]
  <td>
</tr>

Now all i want is if no data during the mergeblock() is returned, e.g. there are no variables for blk4 then it should skip on displaying
"<TR>Query output:</TR>".

Any advice?

Thanks

--thepony
By: Skrol29
Date: 2004-12-03
Time: 14:21

Re: Rendering HTML code depending on MergeBlock() results

Try:
<tr>Query output:[onload;block=tr;when [blk4.#]=0]</tr>
By: magictrickpony
Date: 2004-12-03
Time: 14:41

Re: Rendering HTML code depending on MergeBlock() results

Uhm, i like the idea, but it still doesn't seem to work :-)
By: Skrol29
Date: 2004-12-03
Time: 15:03

Re: Rendering HTML code depending on MergeBlock() results

Sorry, it should be 'onshow' instead of 'onload'.
By: magictrickpony
Date: 2004-12-03
Time: 16:19

Re: Rendering HTML code depending on MergeBlock() results

Works. Merci beaucoup!

A bientôt!

--thepony