Hi everyone,

Recently, I gave up on the code below, because I thought I missed something
regarding parametrized macro calls, but in an answer today to Tony
Grosinger, Jeremy said something about wikified text that can't be used as
a setting that rang a bell.

My problem was merely to compute a filter in a <$list/> widget inside a
macro and then use the computed filter in another macro:

<!-- Macro to compute the filter -->
\define myfilter(namespace:"mp:")
<$list filter="[prefix[$namespace$]] +[field:text[Yes]]
+[removeprefix[$namespace$]]"
emptyMessage="No path set!">tag[<<currentTiddler>>]</$list>
\end
<!-- Macro to display the filtered tiddlers -->
\define mytiddlers(filter)
<$list filter="[$filter$]">

</$list>
\end

I was hoping to display a list of tiddlers that matched the filter
computed in the *myfilter* macro,
but <$macrocall $name="mytiddlers" filter=<<myfilter>> /> keeps returning
the (correctly) instanciated code of *mytiddlers*,
say <$list filter="[tag[english]tag[power user]]"> </$list>,
instead of the actual list of tiddlers.

Is there a way solve this kind of issue?

Thanks in advance!

-- Xavier Cazin

-- 
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/CADeSwYP3hGwPUisNO%3DSBV6%2B85W5D%3DEQBBOvJO8oVHeFxDyxVRQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to