Hi
Is tiddler attribute here added by mistake

<$count tiddler="Contents" filter=[tag[Contents]]/>


The documentation does show such attribute for Count Widget!

I think the correct syntax is as below

<$count filter=[tag[Contents]]/>


--Mohammad


On Thursday, August 16, 2018 at 7:33:17 PM UTC+4:30, Jeremy Ruston wrote:
>
> Hi Stuart
>
> The trick is to use the wikify widget to render the output of the count 
> widget into a variable, and then to transclude that variable as the value 
> of the colspan attribute. For example:
>
> <$wikify name="count" text="<$count filter='[tag[Contents]]'/>">
> <table>
> <tr>
> <td colspan=<<count>>>
> <$count tiddler="Contents" filter=[tag[Contents]]/> columns </td>
> </tr>
> <tr><td> 1 </td><td> 1 </td><td> 1 </td><td> 1 </td></tr>
> </table>
> </$wikify>
>
>
> Best wishes
>
> Jeremy.
>
>
> On 16 Aug 2018, at 15:55, 'Stuart Amor' via TiddlyWiki <
> tiddl...@googlegroups.com <javascript:>> wrote:
>
> 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
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+...@googlegroups.com <javascript:>.
> To post to this group, send email to tiddl...@googlegroups.com 
> <javascript:>.
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/460d83c2-5b82-4b52-954b-04f51c1fc37b%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/460d83c2-5b82-4b52-954b-04f51c1fc37b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9ceffc17-7f8b-41aa-9fd1-6f57a35e6433%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to