On Saturday, August 18, 2018 at 6:51:13 AM UTC-7, Mark S. wrote:
>
> You're trying to "glue" the result of a transclusion into a string.
> Whenever you need to do that, you almost always need a macro. This worked
> in my quick test:
>
\define filt() ^$(dt)$10
> <$set name="dt" value={{!!title}}>
> Number of entries: <$count filter="[regexp:startdate<filt>]"/>
> </$set>
>
>
In this use-case, you don't actually need a macro... you can use the
<<wikify>> widget to "glue" the parts together, like this:
<$wikify name="filt" text="^{{!!title}}10">
Number of entries: <$count filter="[regexp:startdate<filt>]"/>
</$wikify>
* use $wikify instead of $set (2 places)
* use text= instead of value=
enjoy,
-e
--
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 [email protected].
To post to this group, send email to [email protected].
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/a428fc8c-e2bb-4357-b406-98fdbc60ae95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.