Categories > TinyButStrong general >

How to show or hide a block with shared content?

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Leandro Ardissone
Date: 2006-03-02
Time: 21:39

How to show or hide a block with shared content?

Hi,

I want to do something like:
<table width="100%" border="1">
  <tr>
    <td>test text</td>
  </tr>
  <tr>
    <td>[var.stuff][onload;block=tr;when [var.coupon]>0] some other text and stuff here</td>
  </tr>
</table>

Is that possible?
I mean, share the <td> content with static text and validate to shown.

bc I can't get it to work..

thanks..
By: Skrol29
Date: 2006-03-03
Time: 01:42

Re: How to show or hide a block with shared content?

Yes it's possible. The <tr> are the bad tags to define the bounds in your case. You'd better add <span> or <div> around the texte you want to hide in the <td>, then put the [onload] TBS tag inside that HTML tags, and change "block=tr" into "block=span" or "block=div".
By: Leandro Ardissone
Date: 2006-03-03
Time: 01:44

Re: How to show or hide a block with shared content?

niice..

thank you!