On Saturday, July 28, 2018 at 9:46:22 AM UTC-7, JWHoneycutt wrote:
>
> I want to transclude all the tiddlers that start with today's date. I 
> suspect I am handling the variable incorrectly.
>
> Can you help me debug this?
>

1) To use the result of the <<now>> macro as a parameter value, omit the 
quotes surrounding value=...
2) The <$set> widget should NOT use the "closing slash" syntax.  Instead, 
you need to use the matching </$set> at the end of the code.  The variable 
is only defined within the scope of the <$set>...</$set>
3) You can only use the $(today)$ syntax within a macro definition, so 
filter="[prefix[$(today)$]" won't work.  However, there is a direct filter 
syntax for referencing values in variables, so you can write 
filter="[prefix<today>]"
4) You can't combine the {{...}} transclusion syntax with the <<variable>> 
reference.  Instead, to transclude the content from the currentTiddler, use 
the <$transclude> widget.  You can omit the tiddler=... parameter from that 
widget, since it defaults to the currentTiddler.  Thus:

<$set name="today" value=<<now YYYY-0MM-0DD>>> 
   <$list filter="[prefix<today>]">
      <$view field="title"/><br>
      <$transclude /><br>
   </$list>
<$set>

enjoy,
-e
Eric Shulman
TiddlyTools.com: "Small Tools for Big Ideas!" (tm)
InsideTiddlyWiki: The Missing Manuals

-- 
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/d047aed1-d455-4c60-befc-565f862c2472%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to