Thanks. Your macros are way beyond my current ability but you did get me
further along.
I've got the macro working with parameters and using a default (and
changable) list of fields for the data and I can define a filter in the
macro call but I still can't figure out how to set a default filter when
none is passed in.
Current code:
\define grid(datafilter:"[tag[<<currentTiddler>>]]", list:"[list[]]")
<table>
<caption>data from $datafilter$</caption>
<tr><th>//Link//</th><$list filter=$list$
variable="columntitle"><th><<columntitle>></th></$list></tr>
<$list filter=$datafilter$ variable="rowtiddler"><tr>
<td><$link to=<<rowtiddler>> ><<rowtiddler>></$link></td>
<$list filter=$list$ variable="cellfield"><td> <$transclude
tiddler=<<rowtiddler>> field=<<cellfield>>/> </td></$list>
</tr>
</$list>
</table>
\end
Calling it without arguments doesn't work:
<<grid>>
Calling with just a filter argument does work:
<<grid [tag[mygrid]]>>
<<grid [tag[mygrid]] [list[!!shortlist]]>>
So how do I set the default for the filter to be all tiddlers tagged with
the title of the current tiddler (which is what I tried to do in the code)?
On Thursday, March 9, 2017 at 11:38:55 AM UTC-5, Jed Carty wrote:
>
> The table macros I made made be useful to you:
> http://ooktech.com/jed/ExampleWikis/DynamicTables/
>
> Also I made a library tracker for the same reason here:
> http://inmysocks.tiddlyspot.com/#%24%3A%2Fplugins%2Finmysocks%2FLibraryTracker%2FLibrary%20Tracker
>
>
> I am in the process of updating and moving my plugins to my new plugin
> library, so these should get an update at some point in the not too distant
> future.
>
--
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/48b9e0ff-0404-443c-a2e7-7f720846bc46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.