Unfortunately, that's not quite what I wanted to do. I want to the field
as a List Field, and do some arbitrary thing for each element in it.
Therefore, I need to evaluate the macro (including any transclusions)
before returning it to the filter= param. If I call a macro as the filter
param, it doesn't seem to resolve any widgets, giving me the output I
posted on the bottom of my initial topic. Further reading has seemed to
indicate <http://tiddlywiki.com/#Macros> that wikiText (including widgets)
is not evaluated during macro evaluation. Which means that the filter
doesn't receive a list of Tiddlers, but rather a string of wikiText, which
it doesn't know how to parse. At this point, I'm pretty sure what I'm
trying to do isn't quite possible, though I'd be happy to be proven wrong.
On Saturday, August 8, 2015 at 9:46:07 PM UTC-4, Jed Carty wrote:
>
> Yes, you can do what you want.
>
> You need two macros. You call one inside the other. I am currently using
> my tablet on an airplane so I may not be able to give a good example, but
> try this:
>
> \define inner()
> <$list filter={{!!parent}}>
> <<outer>>
> </$list>
> \end
>
> \define outer()
> <<inner>>
>
> <$view field="""$(Field)$"""/>
> \end
>
> <$set name=Field value=bob>
> <$list filter={{!!parent}}>
> <<outer>>
> </$list>
> </$set>
>
> Where you replace bob with your field name, you can almost certainly make
> it more compact and wrap it in another macro so you can call it like in
> your code. Editing this on my tablet is a pain so I am writing this blind
> and only did one very simple test. Hopefully this is enough so you can
> modify it to do what you want.
>
>
--
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/0176091f-5c1e-4430-b9a7-fe85225fa2fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.