On Tuesday, January 8, 2019 at 7:51:59 AM UTC-8, Jack Baty wrote:

I am trying to display a comma-delimited list of tiddlers tagged with 
> "Word" but would like each link to not include the "Word: " prefix, yet 
> still link to the appropriate tiddler.
> <$list filter='[tag[Word]butlast[]removeprefix[Word: ]]'><$link><$view 
> field="title"/></$link>,</$list>
> <$list filter='[tag[Word]last[]removeprefix[Word: ]]'><$link><$view 
> field="title"/></$link></$list>
>
>
Instead of removing the "Word:" prefix in the main <$list> widget, just 
match the desired titles as-is, so that the <$link> widget will get the 
correct tiddler title for *navigation* purposes.

Then, separately apply the removeprefix["Word:" ] to the 
currentTiddler using an 'inline filter' (the triple curly brace syntax) to 
produce the desired text for *display* purposes.

Something like this:
<$list filter='[tag[Word]butlast[]]'><$link>{{{ 
[<currentTiddler>removeprefix[Word: ]] }}}</$link>,</$list>
<$list filter='[tag[Word]last[]]'>   <$link>{{{ 
[<currentTiddler>removeprefix[Word: 
]] }}}</$link> </$list>

enjoy,
-e
Eric Shulman
TiddlyTools.com: "Small Tools for Big Ideas!" (tm)
InsideTiddlyWiki: The Missing Manuals

-- 
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/2a6fe270-c32d-48d1-983b-9152feadcf5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to