Hello Mark,

I already tried that construct, with the same result.

I add the tiddler here, and a screenshot of the output.

Still, with my version of the code, this is the filter it shows: **
[tag[Overnachting]trip[Balkan 2019]sort[title]]** (Without the '**', of 
course ;-) )
So that looks like it does work (construct the correct filter, I mean). 
When I feed that to Advanced Search,, it gives me the expected reults. The 
<$list> does not.

Op vrijdag 25 januari 2019 16:18:03 UTC+1 schreef Mark S.:
>
> 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/ad584649-d621-449d-812f-e926ad3b230b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: $__vak_overnachting-list-template.tid
Description: Binary data

Reply via email to