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
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 !!!