>
> I don't understand why I have to set a variable for the filter in order to 
> get it to work. How do I put the default value into the macro definition?
>

The syntax you used for the datafilter parameter default value in your 
first code example is not correct.  You wrote:
\define grid(datafilter:"[tag[<<currentTiddler>>]]", list:"[list[]]")

However, the correct syntax for using a variable within the filter should 
be:
[tag<currentTiddler>]

The outer square brackets delimit the tag filter expression
The inner delimiters depend on the type of parameter being supplied to the 
tag filter
* [tag[sometag]]
   is for *literal* tag parameter values
* [tag<somevar>]
   uses the value stored in a variable as the tag parameter
* [tag{sometiddler!!somefield}]
   uses the value stored in a tiddler field. (note: you can omit the 
"sometiddler" portion of the tag parameter to refer to a field in the 
current tiddler OR omit the "!!somefield" portion to refer to the "text" 
field by default)

Hope that helps...

enjoy,
-e

Eric Shulman
TiddlyTools: 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/2a87ed9b-57c2-4871-a8ba-deff7fb1ec11%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to