Hello TW-Community,
I have simple question and I think I am (again) fighting to use the right brackets.
This is my simplified use case.
A procedure with a list.
\procedure show_fields(selector)
<$list filter='[tag[<selector>]]'>
<hr>
</$list>
\end
And I call the procure with
<<show_fields "Main">>
But the list will not be generated as if I do
<$list filter='[tag[Main]]'>
I searched here around and found
<$list filter='[tag<selector>]'>
what is also not working.
Thx in advance
Stefan
pmario
2
Try this:
\procedure show_fields(selector)
\whitespace trim
<$list filter='[tag<selector>]'>
<<currentTiddler>>
<hr>
</$list>
\end
<<show_fields HelloThere>>
As soon as you have a “body code” in the list widget, you have to define the body as a template.
Hi @pmario,
thank you so far. This is working well:
<$list filter='[tag<selector>]'>
But if I add a sort is isn’t
<$list filter='[[tag<selector>]sort[title]]'>
Stefan
The correct filter syntax is:
<$list filter='[tag<selector>sort[title]]'>
Notes:
- A “filter run” is a sequence of “filter operators”.
- Each filter run is enclosed in square brackets.
-e