> Assume you have a macro called "mac" and it produces s line of words which 
> should be interpreted as a *Title List*:
>
>
> \define mac(p1,p2)
> here the macro body
> ...
> ....
> \end 
>
> When I call mac it produces for example
>
> one two twenty six four fifty two
>
> Note here twenty six AND fifty two are single titles
>
>
> I want then use the output in a list widget
>
> <$list filter=<<mac>> ...
> <li><<currentTiddler>></li>
>
> The problem is listwidget cannot distinguish twenty six or fifty two and 
> also remove the last two
>
> How can I enforce mac to return a *Title List*?
>

Hi @Mohammad,

depending on how your mac macro looks like, I think you should first either 
set a variable to the content of the macro or use a wikify widget to 
"display" the content of the macro as if it was rendered

now I guess that you do some listing/filtering within the mac macro, so I'd 
do:

<$wikify name="mylist" text="""<$macrocall $name="mac" p1="whatever your p1 
is" p2="whatever your p2 is"/>""">
<$list filter="[enlist<mylist>]" variable="myListItem">
<li><<myListItem>></li>
</$list>
</$wikify>




-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/4cefbeb7-8448-425c-afe8-2c98df3f6abf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to