With the dynamic columns 1 example, I’m trying to do following: Whit in 1 table, a need sections that are separated by a row with colspan (depending on the number of rows)
I don’t know if TBS supports this?
This is my code:
<table border="1" cellpadding="3" cellspacing="0" style="margin-left:auto; margin-right:auto;">
<tr>
<td width="60" align="center" class="cell-0">X</td>
<td align="center" class="cell-front">[c.key;block=td;parallel=tbs:table] </td>
</tr>
<tr>
<td align="center" class="cell-front">[r.$;block=tr]</td>
<td align="center" class="cell-1">[r.[c.val]] </td>
</tr>
<tr>
<td align="center" class="cell-front">[r.$;block=tr]</td>
<td align="center" class="cell-2">[r.[c.val]] </td>
</tr>
<tr>
<td colspan="[onload.acols]" align="center" class="cell-0">TEST</td>
</tr>
…next section
</table>
|
Php script added this line:
$TBS->VarRef['acols'] = $nbr_col; |
The error I’m getting is:
TinyButStrong Error Parallel: At row 4 having entity [tr],the column 2 is missing or is not the first in a set of spanned columns. (The block is defined from column 2 to 2)
TinyButStrong Error in field [r....]: item '' is not an existing key in the array. This message can be cancelled using parameter 'noerr'.