Skip to content

How to use currentTiddler inside the filter to the ListWidget or list-links macro? #8002

Answered by rybak
rybak asked this question in Q&A
Discussion options

You must be logged in to vote

Figured out were I went wrong: while inside a filter, the variables have a different syntax, with single angle brackets and without square brackets. See section "Special parameters" in Introduction to filter notation.

The fixed wikitext is then:

<<list-links filter:"[tag<currentTiddler>]">>

<$list filter="[tag<currentTiddler>sort[title]]"/>

Though output of ListWidget needs heavy tweaking to resemble output of <<list-links>>:

<ul>
  <$list filter="[tag<currentTiddler>sort[title]]">
    <li><$link to=<<currentTiddler>> /></li>
  </$list>
</ul>

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by rybak
Comment options

You must be logged in to vote
1 reply
@rybak
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants