[tw5] Re: List macro says: No result, where Advanced Search finds tiddlers

2019-01-25 Thread Chris Brouwer
Thanks very much, Mark!

I have tried something like this, but probably still made a mistake 
somewhere.

This is working as expected.

-- 
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/be1e8abb-9e5c-4e2c-aa74-886e1dc2dfe0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: List macro says: No result, where Advanced Search finds tiddlers

2019-01-25 Thread 'Mark S.' via TiddlyWiki
I tested, and this works. I assumed that tiddler $:/vak/curTrip contains 
the name of a trip:


\define list-body(tag:"" trip:"" prefix:"")
--
"""$tag$"""
"""$trip$"""
<>
--

Naam
Keuze
Prijs
Periode

<$list filter=<> emptyMessage="Niets gevonden">
<>
<>
<>
<>


\end

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

You *CAN NOT* mix wikitext. You cannot put {{[[mylinke]]}} or 
[[{{!!mylink}}]]. You can not put <>

That is why you need a macrocall widget to call your macro. This will not 
work:

<>

Because you are putting wikitext  {{$:/vak/curTrip}}  inside of wiki text 
<>

This will not work:

<>

Because you are putting [[$trip$]] inside of wikitext macro 
<>

HTH
-- Mark


On Friday, January 25, 2019 at 8:48:05 AM UTC-8, Chris Brouwer wrote:
>
> 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
>>
>> <>
>>
>> Hier
>>
>> <$list filter=<> prefix:"">> emptyMessage="Niets gevonden">
>>
>> <>
>>
>> I think what you want is to make changes like:
>>
>> <>
>> ...
>> <$list filter=<> 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:"")
>>> --
>>> """$tag$"""
>>> """$trip$"""
>>> <>
>>> --
>>> 
>>> Naam
>>> Keuze
>>> Prijs
>>> Periode
>>>
>>> <$list filter=<>> prefix:"">> emptyMessage="Niets gevonden">
>>> <>
>>> <>
>>> <>
>>> <>
>>> 
>>> 
>>> \end
>>>
>>> <>
>>>
>>>
>>> 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 
  
 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 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/a42e2771-1143-48fd-b9e1-8ec747ff5b61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: List macro says: No result, where Advanced Search finds tiddlers

2019-01-25 Thread Chris Brouwer
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
>
> <>
>
> Hier
>
> <$list filter=< prefix:"">> emptyMessage="Niets gevonden">
>
> <>
>
> I think what you want is to make changes like:
>
> <>
> ...
> <$list filter=< 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:"")
>> --
>> """$tag$"""
>> """$trip$"""
>> <>
>> --
>> 
>> Naam
>> Keuze
>> Prijs
>> Periode
>>
>> <$list filter=<> prefix:"">> emptyMessage="Niets gevonden">
>> <>
>> <>
>> <>
>> <>
>> 
>> 
>> \end
>>
>> <>
>>
>>
>> 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 
>>>  
>>> 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 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/ad584649-d621-449d-812f-e926ad3b230b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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


[tw5] Re: List macro says: No result, where Advanced Search finds tiddlers

2019-01-25 Thread 'Mark S.' via TiddlyWiki
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

<>

Hier

<$list filter=<> emptyMessage="Niets gevonden">

<>

I think what you want is to make changes like:

<>
...
<$list filter=<> 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:"")
> --
> """$tag$"""
> """$trip$"""
> <>
> --
> 
> Naam
> Keuze
> Prijs
> Periode
>
> <$list filter=< prefix:"">> emptyMessage="Niets gevonden">
> <>
> <>
> <>
> <>
> 
> 
> \end
>
> <>
>
>
> 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 
>>  
>> 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 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/3c5278ae-9292-4751-9220-3e6fdc2fbb66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: List macro says: No result, where Advanced Search finds tiddlers

2019-01-25 Thread Chris Brouwer
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:"")
--
"""$tag$"""
"""$trip$"""
<>
--

Naam
Keuze
Prijs
Periode

<$list filter=<> emptyMessage="Niets gevonden">
<>
<>
<>
<>


\end

<>


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 
>  
> 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 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/2064e691-c131-401e-9b77-e28c311d8bdf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: List macro says: No result, where Advanced Search finds tiddlers

2019-01-25 Thread Ton Gerner
Hi Chris,

May be this 
 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 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/531539cf-a654-4143-8da0-4a0a20790e50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.