I am trying to devise a way where a tiddler tag count dictates the number of merged columns in a table. The following lines gives me the tiddler tag count:
<$count tiddler="Contents" filter=[tag[Contents]]/>
And I am using the following script example to generate a html table colspan:
<table>
<tr>
<td colspan="3"> 3 columns </td>
</tr>
<tr><td> 1 </td><td> 2 </td><td> 3 </td></tr>
</table>Enter code here...
But when I combine the two items...
<table>
<tr>
<td colspan="<$count tiddler="Contents" filter=[tag[Contents]]/>"> <$count tiddler="Contents" filter=[tag[Contents]]/> columns </td>
</tr>
<tr><td> 1 </td><td> 1 </td><td> 1 </td></tr>
</table>
I can't find a way to make the count number within the colspan statement equate to a number. I have tried macros and everything