Actually I used the following to keep Macro parameter "locally"
\define prepEnlisting(nlst)
[[[[$nlst$]]]]
\end
\define myBooks(category lang)
<$list filter="[all[tiddlers]tag[$category$]tag[$lang$]]" variable="macO">
<$macrocall $name="prepEnlisting" nlst=<<macO>> />
</$list>
\end
<$wikify name="wkfd" text="<<myBooks Novel EN>>" >
<$list variable="myList" filter="[enlist<wkfd>]">
Auther of : <<myList>> is {{{[<myList>get[auther]]}}}<br>
</$list>
</$wikify>
Again, is there any other implementations?
On Wednesday, March 3, 2021 at 3:03:17 AM UTC+2 Mohamed Amin wrote:
> Ok, I figured it out (Thanks BTC
> <https://groups.google.com/g/tiddlywiki/c/rnC8doLyI0M/m/iaKgd_oNAgAJ>)
>
> \define prepEnlisting(nlst)
> [[[[$(macO)$]]]]
> \end
> \define myBooks(category lang)
> <$list filter="[all[tiddlers]tag[$category$]tag[$lang$]]" variable="macO">
> <<prepEnlisting>>
> </$list>
> \end
>
> <$wikify name="wkfd" text="<<myBooks Novel EN>>" >
> <$list variable="myList" filter="[enlist<wkfd>]">
> Auther of : <<myList>> is {{{[<myList>get[auther]]}}}<br>
> </$list>
> </$wikify>
>
> Any other implementation for the same functionality?
>
>
>
> On Tuesday, March 2, 2021 at 4:23:31 PM UTC+2 Mohamed Amin wrote:
>
>> Hi All,
>>
>> I've a set of tiddlers represent my books/novels, and I'm using the
>> following Macro to filter my books by their "Category" and "Language" :
>>
>> \define myBooks(category lang)
>> <$list filter="[all[tiddlers]tag[$category$]tag[$lang$]]"/>
>> \end
>>
>> and when I run <<myBooks Novel EN>> I got a "LIST" of my "English Novels"
>> (which is working as expected)
>>
>> Now, my problem is when I try to use that Macro output as a "LIST" in
>> other part of my code (to identify other properties like Authers, Rating,
>> ...)
>>
>> for example, I tried the following :-
>>
>> <$wikify name="wkfd" text="<<myBooks Novel EN>>" >
>> <$list variable="myList" filter="[enlist<wkfd>]">
>> <<myList>>
>> </$list>
>> </$wikify>
>>
>> but both "wkfd" and "myList" variables are NOT "LIST" to iterate with.
>>
>> so, what is the correct way to use that macro output as a list?
>>
>> Regards
>>
>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/567f4c29-8d09-4ddc-9bc8-f671ddc32bc9n%40googlegroups.com.