Categories > TinyButStrong general >

onshow break when apostrophise

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: martin
Date: 2011-07-20
Time: 10:57

onshow break when apostrophise

Hi !!!

I have a problem, when onshow is conditional.

I use
  [onshow;block=tr;when [blk1.name]!='']
to show the table row only when then name is not empty.

The blk1 its a Field not a Block.

I use something like this:

<table>
<tr>
  <td>Age: [blk1.age]</td>
</tr>
<tr>
  <td>Name [onshow;block=tr;when [blk1.name]!='']</td>
</tr>
</table>

I try putting :

1) [onshow;block=tr;when [blk1.name]!='']
2) [onshow;block=tr;when '[blk1.name]'!='']
3) [onshow;block=tr;when [blk1.name;protect=yes]!='']
3) [onshow;block=tr;when [blk1.name;protect=no]!='']

The string into field blk1.name is
La Dora va a l'escola

To fix, from the moment, i do this little trick

[onshow;block=tr;when '[blk1.name;onformat=phpfunc;fct=strlen;]'!=0]

strlen it a function to return the strlen() of parameter. ;)


Thanks a lot !!!