Categories > TinyButStrong general >

Nested conditional within a block

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Erin
Date: 2005-08-15
Time: 19:51

Nested conditional within a block


I am having problems nesting a conditionial within another block. It works for the first <tr> but all the rest skip the conditional <td>.

Code is as follows:
<tr class="tr-link" onmouseover="this.className='tr-link-hover'" onmouseout="this.className='tr-link'">
  <td>[UserInfo.user_name;block=tr]</td>
  <td>[UserInfo.full_name]</td>
  <td><img src="/images/check.gif" alt="Yes" />[onshow_#;block=td;when [UserInfo.active]=1]</td>
  <td><img src="/images/stop.gif" alt="No" />[onshow_#;block=td;when [UserInfo.active]=0]</td>
  <td><img src="/images/warning.gif" alt="Error" />[onshow_#;block=td;default]</td>
  <td>[UserInfo.last_login;frm='mm-dd-yyyy@ hh:mm:ss']</td>
  <td>&nbsp;</td>
</tr>


Thanks,

Erin
By: Erin
Date: 2005-08-15
Time: 19:53

Re: Nested conditional within a block

oh... and it works the same with "onshow_#" and "onshow".


Thanks,

Erin
By: Erin
Date: 2005-08-15
Time: 22:39

Re: Nested conditional within a block

Changing "onshow_#" to "onshow_[UserInfo.#]" seems to work.