>
> On Tuesday, January 8, 2019 at 11:42:10 AM UTC-5, Eric Shulman wrote:
>>
>> <$list filter='[tag[Word]butlast[]]'><$link>{{{
>> [<currentTiddler>removeprefix[Word: ]] }}}</$link>,</$list>
>> <$list filter='[tag[Word]last[]]'> <$link>{{{
>> [<currentTiddler>removeprefix[Word:
>> ]] }}}</$link> </$list>
>>
>
> Thanks Eric, this looks like it could be a nice, clean solution.
> Unfortunately, for me, the generated links *do not* include "Word: " so
> do not link to the correct tiddler.
>
The problem is that, because the title contains a space, and the result of
the 'inline filter' is a *list*, the output is automatically enclosed with
doubled square brackets, which renders a "link-within-a-link". To avoid
this, the display output can use the <$text> widget to produce 'pure', like
this:
<$list filter='[tag[word]butlast[]]'><$link><$text text={{{ [
<currentTiddler>removeprefix[Word: ]] }}}/></$link>,</$list>
<$list filter='[tag[word]last[]]'> <$link><$text text={{{ [
<currentTiddler>removeprefix[Word: ]] }}}/></$link> </$list>
This should work now.
enjoy,
-e
--
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/a82f4792-157c-42b7-a387-889b2654634d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.