Categories > TinyButStrong general >

tbs code displaying var result on html tag

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: handoko
Date: 2009-11-25
Time: 23:01

tbs code displaying var result on html tag

Hi all,

i use this code but i don't want to display the value on html code to comply wiht wc3

<table border="0" align="center" cellpadding="2" cellspacing="0" [var.visiblenv;if [val]=1;magnet=table;mtype=m*m;noerr]>

html result is

<table border="0" align="center" cellpadding="2" cellspacing="0" 1>

i want to hide var result "1" from html tag., anyone can help me?

rgds
By: Skrol29
Date: 2009-11-26
Time: 00:29

Re: tbs code displaying var result on html tag

Hi handoko,

If think the "if [val]=1" does nothing because you have not any "then" or "else.

You can code:
[var.visiblenv;if [val]=1;then ' ';else '';magnet=table;mtype=m*m;noerr]

But in fact the best way is to use an automatic block:
[onshow;block=table;when [var.visiblenv;noerr]=1]
And you can put this TBS tag anywhere inside the <table></table>, even in the text of a cell.