It would take a half hour to set up data to give an exact fix, but what 
stands out immediately is that you are inserting wikitext into wiki text, 
which doesn't work:

Here

<<createTripFilter tag:"""$tag$""" trip:[[$trip$]] prefix:"">><br>

Hier

<$list filter=<<createTripFilter tag:"""$tag$""" trip:[[$trip$]] 
prefix:"">> emptyMessage="Niets gevonden">

<<list-body tag:"Overnachting" trip:"{{$:/vak/curTrip}}" >>

I think what you want is to make changes like:

<<createTripFilter tag:"""$tag$""" trip:"""$trip$""" prefix:"">><br>
...
<$list filter=<<createTripFilter tag:"""$tag$""" trip:"""$trip$""" 
prefix:"">> emptyMessage="Niets gevonden">

And invoke the macro with a macro call:

<$macrocall $name=list-body tag="Overnachting" trip={{$:/vak/curTrip}} />

If you share a page as well, it wold be easier to tell if the syntax was 
right, but I think that's what you need.

Good luck
-- Mark


On Friday, January 25, 2019 at 6:29:06 AM UTC-8, Chris Brouwer wrote:
>
> Hello Ton,
>
> allthough this is enlightening for me, the situation is a bit more complex.
>
> I am trying to adapt a little bit of Mario Pietsch's excellent work, just 
> to include 1 extra filtering parameter.
>
> Here is (most of) the code I changed:
>
> \define createTripFilter(tag:"" trip:"" prefix:"")
> [tag[$tag$]trip[$trip$]sort[title]]
> \end
>
> \define list-body(tag:"" trip:"" prefix:"")
> --<br>
> """$tag$"""<br>
> """$trip$"""<br>
> <<createTripFilter tag:"""$tag$""" trip:[[$trip$]] prefix:"">><br>
> --<br>
> <div class="table view-ovn-grid">
> <span class="header">Naam</span>
> <span class="header">Keuze</span>
> <span class="header">Prijs</span>
> <span class="header">Periode</span>
>
> <$list filter=<<createTripFilter tag:"""$tag$""" trip:[[$trip$]] 
> prefix:"">> emptyMessage="Niets gevonden">
> <span class="box"><<getLink>></span>
> <span class="box"><<getDescription>></span>
> <span class="box"><<getPrijs>></span>
> <span class="box"><<getPeriode>></span>
> </$list>
> </div>
> \end
>
> <<list-body tag:"Overnachting" trip:"{{$:/vak/curTrip}}" >>
>
>
> I am using Tiddlywiki 5.1.19.
>
> The tiddlers I am looking for contain the tag "Overnachting", and the name 
> of the trip in the field "trip".
>
>
>
> Op vrijdag 25 januari 2019 15:13:05 UTC+1 schreef Ton Gerner:
>>
>> Hi Chris,
>>
>> May be this 
>> <https://groups.google.com/d/msg/tiddlywiki/M5bA6_NKacM/SC-b60hTBQAJ> 
>> helps.
>>
>> Cheers,
>>
>> Ton
>>
>>
>>

-- 
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/3c5278ae-9292-4751-9220-3e6fdc2fbb66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to